fix for refresh on window changes (fullscreen)

This commit is contained in:
Dagen Brock 2016-04-18 23:02:44 -05:00
parent ca91bc4ab4
commit 83a3adb4f9

View File

@ -358,11 +358,14 @@ check_input_events()
void
check_input_events_sdl()
{
// @todo: make sure it's not queueing events / processing full queue each call
int motion = 0;
SDL_Event event;
while (SDL_PollEvent(&event)) {
/* Check all window events (mostly for Fullscreen) */
if (event.type == SDL_WINDOWEVENT) {
set_refresh_needed();
}
switch( event.type ){
case SDL_KEYDOWN:
case SDL_KEYUP: