diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-01 21:46:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-01 21:46:34 +0300 |
commit | f466978d005e3a0e3148f304b075c6a9d9a2760b (patch) | |
tree | 00638e7409909197ffecabff9972f01ca5bee5d0 /src/graphicsmanager.h | |
parent | 1fc47e1877e156fa101ac80edc701d3a90059916 (diff) | |
download | manaplus-f466978d005e3a0e3148f304b075c6a9d9a2760b.tar.gz manaplus-f466978d005e3a0e3148f304b075c6a9d9a2760b.tar.bz2 manaplus-f466978d005e3a0e3148f304b075c6a9d9a2760b.tar.xz manaplus-f466978d005e3a0e3148f304b075c6a9d9a2760b.zip |
use different default font sizes depend on screen density.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r-- | src/graphicsmanager.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h index 8e2e5170d..68ea8af13 100644 --- a/src/graphicsmanager.h +++ b/src/graphicsmanager.h @@ -51,6 +51,17 @@ class TestMain; struct FBOInfo; +enum ScreenDensity +{ + DENSITY_UNKNOWN = -1, + DENSITY_LOW = 0, + DENSITY_MEDIUM = 1, + DENSITY_TV = 2, + DENSITY_HIGH = 3, + DENSITY_XHIGH = 4, + DENSITY_XXHIGH = 5 +}; + class GraphicsManager final { public: @@ -70,6 +81,9 @@ class GraphicsManager final std::string getDensityString() const; + int getDensity() + { return mDensity; } + #ifdef USE_OPENGL TestMain *startDetection() A_WARN_UNUSED; |