changeset 1435:d0a3de66bb42

Small fix for refresh events.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 19 May 2020 13:24:16 +0200
parents c6bfcc105414
children fb8c36073983
files Deprecated/Applications/Generic/GuiAdapter.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Deprecated/Applications/Generic/GuiAdapter.cpp	Tue May 19 13:24:04 2020 +0200
+++ b/Deprecated/Applications/Generic/GuiAdapter.cpp	Tue May 19 13:24:16 2020 +0200
@@ -984,7 +984,7 @@
         while (SDL_PollEvent(&sdlEvent) != 0)
         {
           if ( (sdlEvent.type >= SDL_USEREVENT) && 
-               (sdlEvent.type <= SDL_USEREVENT) )
+               (sdlEvent.type < SDL_LASTEVENT) )
           {
             // we don't want to have multiple events with the same event.type
             userEventsMap[sdlEvent.type] = sdlEvent;