[Commits] [wesnoth/wesnoth] 94b93a: Fix crash caused by a resize event during the load...

GitHub noreply at github.com
Sat Oct 31 22:19:42 UTC 2015


  Branch: refs/heads/sdl2
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 94b93a8fa3c982ed288b9c654eb8a53c130c3b73
      https://github.com/wesnoth/wesnoth/commit/94b93a8fa3c982ed288b9c654eb8a53c130c3b73
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2015-11-01 (Sun, 01 Nov 2015)

  Changed paths:
    M src/loadscreen.cpp

  Log Message:
  -----------
  Fix crash caused by a resize event during the loading screen

The window event handling under SDL2 was incorrectly relying on
SDL_event.window.type for sub-events for SDL_WINDOWEVENT. This
resulted in the if-statements supposed to catch certain window-events
to always evaluate to false, causing the code to never run.





More information about the Commits mailing list