summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-30 22:32:38 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-01 17:27:14 +0300
commit097b17e588ed430482fa1e5e4938618db838e468 (patch)
treeadb9f3122b1e5fac635e439c722ed983ae36d289 /src/graphicsmanager.h
parent1889feb70ddd6d1eaa33da7584ecd20955f94f5c (diff)
downloadmv-097b17e588ed430482fa1e5e4938618db838e468.tar.gz
mv-097b17e588ed430482fa1e5e4938618db838e468.tar.bz2
mv-097b17e588ed430482fa1e5e4938618db838e468.tar.xz
mv-097b17e588ed430482fa1e5e4938618db838e468.zip
add pixel size detection fo X11 and windows.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r--src/graphicsmanager.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h
index 4efcf98af..c97935283 100644
--- a/src/graphicsmanager.h
+++ b/src/graphicsmanager.h
@@ -62,10 +62,12 @@ class GraphicsManager final
void setVideoMode();
- Graphics *createGraphics() A_WARN_UNUSED;
-
bool getAllVideoModes(StringVect &modeList);
+ void detectPixelSize();
+
+ std::string getDensityString() const;
+
#ifdef USE_OPENGL
TestMain *startDetection() A_WARN_UNUSED;
@@ -147,6 +149,16 @@ class GraphicsManager final
int mMaxFboSize;
+ uint32_t mMaxWidth;
+
+ uint32_t mMaxHeight;
+
+ uint32_t mWidthMM;
+
+ uint32_t mHeightMM;
+
+ int32_t mDensity;
+
#ifdef USE_OPENGL
bool mUseTextureSampler;