Mercurial > hg > orthanc-stone
diff Framework/Viewport/SdlViewport.cpp @ 893:0c5201499af8
Fixes to TrackerSampleApp following IViewport refactoring (FusionMprSdl not working yet)
Removal of the useless scene_ inside ViewportController
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 15 Jul 2019 12:48:19 +0200 |
parents | 0aff28f15ea2 |
children | 88bf49aebc13 |
line wrap: on
line diff
--- a/Framework/Viewport/SdlViewport.cpp Thu Jul 11 09:18:55 2019 +0200 +++ b/Framework/Viewport/SdlViewport.cpp Mon Jul 15 12:48:19 2019 +0200 @@ -28,9 +28,10 @@ { SdlViewport::SdlViewport(const char* title, unsigned int width, - unsigned int height) : + unsigned int height, + bool allowDpiScaling) : ViewportBase(title), - context_(title, width, height), + context_(title, width, height, allowDpiScaling), compositor_(context_, GetScene()) { } @@ -38,9 +39,10 @@ SdlViewport::SdlViewport(const char* title, unsigned int width, unsigned int height, - boost::shared_ptr<Scene2D>& scene) : + boost::shared_ptr<Scene2D>& scene, + bool allowDpiScaling) : ViewportBase(title, scene), - context_(title, width, height), + context_(title, width, height, allowDpiScaling), compositor_(context_, GetScene()) { }