From 81524e1cb634881b7c1629f7030facb308f5f853 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Sep 2017 23:07:39 +0300 Subject: Add option for enable high dpi mode in SDL 2. --- src/render/safeopenglgraphics.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/render/safeopenglgraphics.cpp') diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp index 43a22bea3..e65ff94b0 100644 --- a/src/render/safeopenglgraphics.cpp +++ b/src/render/safeopenglgraphics.cpp @@ -64,9 +64,17 @@ bool SafeOpenGLGraphics::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(); } -- cgit v1.2.3-60-g2f50