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/graphics.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/render/graphics.h') diff --git a/src/render/graphics.h b/src/render/graphics.h index 6eb18dfab..87f2f1429 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -161,7 +161,8 @@ class Graphics notfinal const bool fs, const bool hwaccel, const bool resize, - const bool noFrame) restrict2 = 0; + const bool noFrame, + const bool allowHighDPI) restrict2 = 0; /** * Set fullscreen mode. @@ -496,7 +497,8 @@ class Graphics notfinal const bool fs, const bool hwaccel, const bool resize, - const bool noFrame) restrict2; + const bool noFrame, + const bool allowHighDPI) restrict2; int getOpenGLFlags() const restrict2 A_WARN_UNUSED; @@ -542,6 +544,7 @@ class Graphics notfinal RenderType mOpenGL; bool mEnableResize; bool mNoFrame; + bool mAllowHighDPI; std::string mName; int mStartFreeMem; bool mSync; -- cgit v1.2.3-60-g2f50