comparison 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
comparison
equal deleted inserted replaced
655:1e26bb5f2a02 656:002d9562c8f5
35 35
36 namespace OrthancStone 36 namespace OrthancStone
37 { 37 {
38 SdlOpenGLWindow::SdlOpenGLWindow(const char* title, 38 SdlOpenGLWindow::SdlOpenGLWindow(const char* title,
39 unsigned int width, 39 unsigned int width,
40 unsigned int height) : 40 unsigned int height,
41 window_(title, width, height, true /* enable OpenGL */) 41 bool allowDpiScaling) :
42 window_(title, width, height, true /* enable OpenGL */, allowDpiScaling)
42 { 43 {
43 context_ = SDL_GL_CreateContext(window_.GetObject()); 44 context_ = SDL_GL_CreateContext(window_.GetObject());
44 45
45 if (context_ == NULL) 46 if (context_ == NULL)
46 { 47 {