summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-08 14:52:18 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-08 14:52:18 +0300
commit5564df0ae67373da8ffb148fde95fdd9142c870b (patch)
tree59ae99399e3392922cacbd8dfd0136a8738ea8a2 /src/graphicsmanager.cpp
parent64535f9763c432bbb46be2769560bfd6a2202d72 (diff)
downloadmanaverse-5564df0ae67373da8ffb148fde95fdd9142c870b.tar.gz
manaverse-5564df0ae67373da8ffb148fde95fdd9142c870b.tar.bz2
manaverse-5564df0ae67373da8ffb148fde95fdd9142c870b.tar.xz
manaverse-5564df0ae67373da8ffb148fde95fdd9142c870b.zip
fix code style.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index c6c36d15d..ace00663e 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -365,9 +365,13 @@ 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;
+#ifdef USE_SDL2
+ // not implimented
+#else
+ const SDL_VideoInfo* info = SDL_GetVideoInfo();
+ int width = info->current_w;
+ int height = info->current_h;
+#endif
#else
int width = config.getIntValue("screenwidth");
int height = config.getIntValue("screenheight");