summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-01 21:46:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-01 21:46:34 +0300
commitf466978d005e3a0e3148f304b075c6a9d9a2760b (patch)
tree00638e7409909197ffecabff9972f01ca5bee5d0 /src/graphicsmanager.h
parent1fc47e1877e156fa101ac80edc701d3a90059916 (diff)
downloadmanaverse-f466978d005e3a0e3148f304b075c6a9d9a2760b.tar.gz
manaverse-f466978d005e3a0e3148f304b075c6a9d9a2760b.tar.bz2
manaverse-f466978d005e3a0e3148f304b075c6a9d9a2760b.tar.xz
manaverse-f466978d005e3a0e3148f304b075c6a9d9a2760b.zip
use different default font sizes depend on screen density.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r--src/graphicsmanager.h14
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;