comparison Deprecated/Applications/Generic/GuiAdapter.cpp @ 1435:d0a3de66bb42

Small fix for refresh events.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 19 May 2020 13:24:16 +0200
parents b2b0fc4a5596
children fb8c36073983
comparison
equal deleted inserted replaced
1434:c6bfcc105414 1435:d0a3de66bb42
982 982
983 // FIRST: collect all pending events 983 // FIRST: collect all pending events
984 while (SDL_PollEvent(&sdlEvent) != 0) 984 while (SDL_PollEvent(&sdlEvent) != 0)
985 { 985 {
986 if ( (sdlEvent.type >= SDL_USEREVENT) && 986 if ( (sdlEvent.type >= SDL_USEREVENT) &&
987 (sdlEvent.type <= SDL_USEREVENT) ) 987 (sdlEvent.type < SDL_LASTEVENT) )
988 { 988 {
989 // we don't want to have multiple events with the same event.type 989 // we don't want to have multiple events with the same event.type
990 userEventsMap[sdlEvent.type] = sdlEvent; 990 userEventsMap[sdlEvent.type] = sdlEvent;
991 } 991 }
992 else 992 else