Mercurial > hg > orthanc-stone
diff 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 |
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;