summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-21 21:46:17 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-22 02:56:50 +0300
commit45fc7dfe871e25c913deb56063ca930dafe8b9ae (patch)
tree0ef15c4d3d36b02e41f8bfa765f5fadee779af24 /src/graphicsmanager.cpp
parent6e6d42af899c7dcc05b20b07130d0b1a5932f9bf (diff)
downloadmv-45fc7dfe871e25c913deb56063ca930dafe8b9ae.tar.gz
mv-45fc7dfe871e25c913deb56063ca930dafe8b9ae.tar.bz2
mv-45fc7dfe871e25c913deb56063ca930dafe8b9ae.tar.xz
mv-45fc7dfe871e25c913deb56063ca930dafe8b9ae.zip
fix compilation and partial running with SDL2 on Android.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index d226e35e0..7ce307e99 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -1090,9 +1090,13 @@ void GraphicsManager::detectPixelSize()
#endif
}
#if defined ANDROID
+#ifdef USE_SDL2
+ // +++ need add support
+#else
SDL_ANDROID_GetMetrics(&mMaxWidth, &mMaxHeight,
&mWidthMM, &mHeightMM, &mDensity);
#endif
+#endif
logger->log("screen size in pixels: %dx%d", mMaxWidth, mMaxHeight);
logger->log("screen size in millimeters: %dx%d", mWidthMM, mHeightMM);
logger->log("actual screen density: " + getDensityString());