From 097b17e588ed430482fa1e5e4938618db838e468 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Apr 2013 22:32:38 +0300 Subject: add pixel size detection fo X11 and windows. --- src/graphicsmanager.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/graphicsmanager.h') 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; -- cgit v1.2.3-70-g09d2