diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-17 22:52:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-17 22:52:07 +0300 |
commit | 120e0b5b384566c89984aeea86ae517909ebaac1 (patch) | |
tree | 71a3fae89106d1aa4827a1b314ce3d6f9890575e /src/gui/windowmanager.cpp | |
parent | 8d3ef9075b56d9e9e8288e82e0242896433ff853 (diff) | |
download | manaverse-120e0b5b384566c89984aeea86ae517909ebaac1.tar.gz manaverse-120e0b5b384566c89984aeea86ae517909ebaac1.tar.bz2 manaverse-120e0b5b384566c89984aeea86ae517909ebaac1.tar.xz manaverse-120e0b5b384566c89984aeea86ae517909ebaac1.zip |
Add support for full screen in nacl.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index dfc72ab73..1959ac4a1 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -243,6 +243,19 @@ void WindowManager::resizeVideo(int actualWidth, } } +bool WindowManager::setFullScreen(const bool fs) +{ +#ifdef __native_client__ + naclPostMessage("set-fullscreen", + fs ? "on" : "off"); + return true; +#else + if (!mainGraphics) + return false; + return mainGraphics->setFullscreen(fs); +#endif +} + void WindowManager::applyGrabMode() { SDL::grabInput(mainGraphics->getWindow(), |