From 44ebc4841af7d84676786cc6954b5fbb53241ed1 Mon Sep 17 00:00:00 2001 From: Dan Sagunov Date: Mon, 4 Nov 2013 19:33:58 +0400 Subject: Add screen size detection for nacl --- src/graphicsmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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"); -- cgit v1.2.3-70-g09d2