diff Applications/Sdl/SdlOpenGLWindow.cpp @ 656:002d9562c8f5

Added support to DISABLE legacy scaling in SDL Windows (only in WIN32... this might also be needed on macos and GNU/Linux ?) + fixed text info overlay pos for angle measure (this requires the app to be aware of the compositor)
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 14 May 2019 16:54:13 +0200
parents b4de8272e8fb
children
line wrap: on
line diff
--- a/Applications/Sdl/SdlOpenGLWindow.cpp	Tue May 14 13:51:32 2019 +0200
+++ b/Applications/Sdl/SdlOpenGLWindow.cpp	Tue May 14 16:54:13 2019 +0200
@@ -37,8 +37,9 @@
 {
   SdlOpenGLWindow::SdlOpenGLWindow(const char* title,
                                    unsigned int width,
-                                   unsigned int height) :
-    window_(title, width, height, true /* enable OpenGL */)
+                                   unsigned int height,
+                                   bool allowDpiScaling) :
+    window_(title, width, height, true /* enable OpenGL */, allowDpiScaling)
   {
     context_ = SDL_GL_CreateContext(window_.GetObject());