summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-17 22:52:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-17 22:52:07 +0300
commit120e0b5b384566c89984aeea86ae517909ebaac1 (patch)
tree71a3fae89106d1aa4827a1b314ce3d6f9890575e /src/gui/widgets/tabs
parent8d3ef9075b56d9e9e8288e82e0242896433ff853 (diff)
downloadmv-120e0b5b384566c89984aeea86ae517909ebaac1.tar.gz
mv-120e0b5b384566c89984aeea86ae517909ebaac1.tar.bz2
mv-120e0b5b384566c89984aeea86ae517909ebaac1.tar.xz
mv-120e0b5b384566c89984aeea86ae517909ebaac1.zip
Add support for full screen in nacl.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp
index e96320762..1212da022 100644
--- a/src/gui/widgets/tabs/setup_video.cpp
+++ b/src/gui/widgets/tabs/setup_video.cpp
@@ -177,7 +177,9 @@ Setup_Video::Setup_Video(const Widget2 *const widget) :
#else
mNoFrameCheckBox->setEnabled(false);
mEnableResizeCheckBox->setEnabled(false);
+#ifndef __native_client__
mFsCheckBox->setEnabled(false);
+#endif // __native_client__
#endif
int width = 600;
@@ -214,10 +216,10 @@ void Setup_Video::apply()
if (intToRenderType(config.getIntValue("opengl")) == RENDER_SOFTWARE)
{
#endif
- if (!mainGraphics->setFullscreen(fullscreen))
+ if (!WindowManager::setFullScreen(fullscreen))
{
fullscreen = !fullscreen;
- if (!mainGraphics->setFullscreen(fullscreen))
+ if (!WindowManager::setFullScreen(fullscreen))
{
std::stringstream errorMsg;
if (fullscreen)