summaryrefslogtreecommitdiff
path: root/src/render/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-12 23:07:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-12 23:28:39 +0300
commit81524e1cb634881b7c1629f7030facb308f5f853 (patch)
tree318f0ef6b48e49cb420760afd5fe2f728e35a309 /src/render/graphics.h
parent96aaa9f5d56637373fe474b0113b9e6ba083a12a (diff)
downloadmanaverse-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/graphics.h')
-rw-r--r--src/render/graphics.h7
1 files changed, 5 insertions, 2 deletions
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;