diff options
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"); |