changeset 1407:9c5a8cb3d856

Fixed event loop in simple viewer
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 04 May 2020 13:17:11 +0200
parents 5d7ee14dc1eb
children 875c9a28236e
files Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp	Thu Apr 30 00:25:55 2020 +0200
+++ b/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp	Mon May 04 13:17:11 2020 +0200
@@ -121,11 +121,6 @@
 
         OrthancStone::DefaultViewportInteractor interactor;
 
-#if 1
-        OrthancStoneHelpers::SdlRunLoop(viewport, interactor);
-
-#else
-
         {
           int scancodeCount = 0;
           const uint8_t* keyboardState = SDL_GetKeyboardState(&scancodeCount);
@@ -227,7 +222,6 @@
             SDL_Delay(1);
           }
         }
-#endif
         context.StopOracle();
       }
     }