diff Applications/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp @ 1591:5887a4f8594b

moving platform-specific files out of the "OrthancStone" folder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Oct 2020 13:15:03 +0200
parents 92fca2b3ba3d
children 4fb8fdf03314
line wrap: on
line diff
--- a/Applications/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp	Thu Oct 22 18:39:03 2020 +0200
+++ b/Applications/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp	Fri Oct 23 13:15:03 2020 +0200
@@ -28,7 +28,7 @@
 #include "../../../../OrthancStone/Sources/StoneException.h"
 #include "../../../../OrthancStone/Sources/StoneInitialization.h"
 #include "../../../../OrthancStone/Sources/Viewport/DefaultViewportInteractor.h"
-#include "../../../../OrthancStone/Sources/Viewport/SdlViewport.h"
+#include "../../../Platforms/Sdl/SdlViewport.h"
 
 #include <Compatibility.h>  // For std::unique_ptr<>
 #include <OrthancException.h>
@@ -110,7 +110,8 @@
   try
   {
     OrthancStone::StoneInitialize();
-
+    OrthancStone::SdlWindow::GlobalInitialize();
+    
     ProcessOptions(argc, argv);
 
     //Orthanc::Logging::EnableInfoLevel(true);
@@ -252,6 +253,7 @@
       }
     }
 
+    OrthancStone::SdlWindow::GlobalFinalize();
     OrthancStone::StoneFinalize();
     return 0;
   }