summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sagunov <danilka.pro@gmail.com>2013-11-04 19:33:58 +0400
committerDan Sagunov <danilka.pro@gmail.com>2013-11-04 19:33:58 +0400
commit44ebc4841af7d84676786cc6954b5fbb53241ed1 (patch)
treecf7547b32f7271ecac988d841699284ae2cc1c4e
parent25d33c793a85aa1f62fd2d03378e25078aaf410a (diff)
downloadmv-44ebc4841af7d84676786cc6954b5fbb53241ed1.tar.gz
mv-44ebc4841af7d84676786cc6954b5fbb53241ed1.tar.bz2
mv-44ebc4841af7d84676786cc6954b5fbb53241ed1.tar.xz
mv-44ebc4841af7d84676786cc6954b5fbb53241ed1.zip
Add screen size detection for nacl
-rw-r--r--src/graphicsmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 16e597719..c6c36d15d 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -364,6 +364,10 @@ void GraphicsManager::setVideoMode()
int width = res[0];
int height = res[1];
+#elif defined __native_client__
+ const SDL_VideoInfo* info = SDL_GetVideoInfo();
+ int width = info->current_w;
+ int height = info->current_h;
#else
int width = config.getIntValue("screenwidth");
int height = config.getIntValue("screenheight");