[Commits] [wesnoth/wesnoth] 1c17ec: Fix the graphics corruption when scrolling with SD...

GitHub noreply at github.com
Sat Aug 15 17:56:29 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 1c17ecaa753753db71f6f26d2d6c05a1e20f83d3
      https://github.com/wesnoth/wesnoth/commit/1c17ecaa753753db71f6f26d2d6c05a1e20f83d3
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2015-08-15 (Sat, 15 Aug 2015)

  Changed paths:
    M src/display.cpp

  Log Message:
  -----------
  Fix the graphics corruption when scrolling with SDL2

SDL2 has issues with overlapping surfaces when blitting, it seems to trigger an internal bug in SDL2. This causes the blitted surface to be incorrectly filled, causing a graphics corruption. This introduces a workaround that does a copy of the original surface before blitting, thus avoiding the bug. This behaviour seems to only occur while scrolling so it's a reasonably rare occurence.


  Commit: 2d0482be91cc235480be86d85b8c9e87e6d2cab5
      https://github.com/wesnoth/wesnoth/commit/2d0482be91cc235480be86d85b8c9e87e6d2cab5
  Author: lipk <lipkab at zoho.com>
  Date:   2015-08-15 (Sat, 15 Aug 2015)

  Changed paths:
    M src/display.cpp

  Log Message:
  -----------
  Merge pull request #456 from aginor/sdl2

Fix the graphics corruption when scrolling with SDL2 enabled


Compare: https://github.com/wesnoth/wesnoth/compare/c5854e029957...2d0482be91cc


More information about the Commits mailing list