diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-12 23:07:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-12 23:28:39 +0300 |
commit | 81524e1cb634881b7c1629f7030facb308f5f853 (patch) | |
tree | 318f0ef6b48e49cb420760afd5fe2f728e35a309 /src/render/modernopenglgraphics.cpp | |
parent | 96aaa9f5d56637373fe474b0113b9e6ba083a12a (diff) | |
download | manaverse-81524e1cb634881b7c1629f7030facb308f5f853.tar.gz manaverse-81524e1cb634881b7c1629f7030facb308f5f853.tar.bz2 manaverse-81524e1cb634881b7c1629f7030facb308f5f853.tar.xz manaverse-81524e1cb634881b7c1629f7030facb308f5f853.zip |
Add option for enable high dpi mode in SDL 2.
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r-- | src/render/modernopenglgraphics.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index 6950f4555..be1ec4f73 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -237,9 +237,17 @@ bool ModernOpenGLGraphics::setVideoMode(const int w, const int h, const bool fs, const bool hwaccel, const bool resize, - const bool noFrame) restrict2 -{ - setMainFlags(w, h, scale, bpp, fs, hwaccel, resize, noFrame); + const bool noFrame, + const bool allowHighDPI) restrict2 +{ + setMainFlags(w, h, + scale, + bpp, + fs, + hwaccel, + resize, + noFrame, + allowHighDPI); return setOpenGLMode(); } |