diff options
author | Dan Sagunov <danilka.pro@gmail.com> | 2013-11-04 19:33:58 +0400 |
---|---|---|
committer | Dan Sagunov <danilka.pro@gmail.com> | 2013-11-04 19:33:58 +0400 |
commit | 44ebc4841af7d84676786cc6954b5fbb53241ed1 (patch) | |
tree | cf7547b32f7271ecac988d841699284ae2cc1c4e /src | |
parent | 25d33c793a85aa1f62fd2d03378e25078aaf410a (diff) | |
download | mv-44ebc4841af7d84676786cc6954b5fbb53241ed1.tar.gz mv-44ebc4841af7d84676786cc6954b5fbb53241ed1.tar.bz2 mv-44ebc4841af7d84676786cc6954b5fbb53241ed1.tar.xz mv-44ebc4841af7d84676786cc6954b5fbb53241ed1.zip |
Add screen size detection for nacl
Diffstat (limited to 'src')
-rw-r--r-- | src/graphicsmanager.cpp | 4 |
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"); |