[Commits] [wesnoth/wesnoth] 3a5b12: Peek for redraw events after each call to SDL_Poll...
GitHub
noreply at github.com
Wed Dec 2 10:20:16 UTC 2015
Branch: refs/heads/sdl2
Home: https://github.com/wesnoth/wesnoth
Commit: 3a5b122325cc241b5e45ab38eb30fa8399131fee
https://github.com/wesnoth/wesnoth/commit/3a5b122325cc241b5e45ab38eb30fa8399131fee
Author: Andreas Löf <andreas at alternating.net>
Date: 2015-12-02 (Wed, 02 Dec 2015)
Changed paths:
M src/events.cpp
Log Message:
-----------
Peek for redraw events after each call to SDL_PollEvent.
Since SDL_PollEvent internally pumps events there is is a chance that there will be a redraw event added to the SDL event queue, which could cause a crash if there is a game DRAW event before it in the event queue. This should fix it, but it's not the prettiest of fix and should be rewritten if it works to instead put draw events to the start of the internal event queue after it's been drained.
More information about the Commits
mailing list