diff Applications/Sdl/BasicSdlApplication.cpp @ 233:68856534f005 am

added layout to VSOL, SDL & wasm working
author am@osimis.io
date Fri, 15 Jun 2018 14:29:25 +0200
parents 84844649a8fd
children ce4405d98b92
line wrap: on
line diff
--- a/Applications/Sdl/BasicSdlApplication.cpp	Fri Jun 15 11:23:04 2018 +0200
+++ b/Applications/Sdl/BasicSdlApplication.cpp	Fri Jun 15 14:29:25 2018 +0200
@@ -243,7 +243,8 @@
       LOG(WARNING) << "Creating the widgets of the application";
 
       LogStatusBar statusBar;
-      BasicSdlApplicationContext& context = dynamic_cast<BasicSdlApplicationContext&>(application.CreateApplicationContext(webService));
+      OrthancStone::WidgetViewport* centralViewport = new OrthancStone::WidgetViewport();
+      BasicSdlApplicationContext& context = dynamic_cast<BasicSdlApplicationContext&>(application.CreateApplicationContext(webService, centralViewport));
 
       application.Initialize(statusBar, parameters);