Mercurial > hg > orthanc-stone
comparison Applications/Sdl/SdlOpenGLWindow.h @ 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 SDL_GLContext context_; | 35 SDL_GLContext context_; |
36 | 36 |
37 public: | 37 public: |
38 SdlOpenGLWindow(const char* title, | 38 SdlOpenGLWindow(const char* title, |
39 unsigned int width, | 39 unsigned int width, |
40 unsigned int height); | 40 unsigned int height, |
41 bool allowDpiScaling = true); | |
41 | 42 |
42 ~SdlOpenGLWindow(); | 43 ~SdlOpenGLWindow(); |
43 | 44 |
44 SdlWindow& GetWindow() | 45 SdlWindow& GetWindow() |
45 { | 46 { |