summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/MainNoGUI.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2015-01-04 17:09:56 +0100
committerJules Blok <jules.blok@gmail.com>2015-01-04 17:09:56 +0100
commitb7e056c74d6c157d04cbb79bbb7660a169662c53 (patch)
tree5d657c212748abaaa15675653084a8ba638390c7 /Source/Core/DolphinWX/MainNoGUI.cpp
parent3b9c070ee0e3cb23c72116b97283529fbcd9b7ee (diff)
Host: Add Host_RendererIsFullscreen().
Diffstat (limited to 'Source/Core/DolphinWX/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinWX/MainNoGUI.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/MainNoGUI.cpp b/Source/Core/DolphinWX/MainNoGUI.cpp
index be3d9a7df3..8d6d0282a6 100644
--- a/Source/Core/DolphinWX/MainNoGUI.cpp
+++ b/Source/Core/DolphinWX/MainNoGUI.cpp
@@ -26,6 +26,7 @@
#include "VideoCommon/VideoBackendBase.h"
static bool rendererHasFocus = true;
+static bool rendererIsFullscreen = false;
static bool running = true;
class Platform
@@ -89,6 +90,11 @@ bool Host_RendererHasFocus()
return rendererHasFocus;
}
+bool Host_RendererIsFullscreen()
+{
+ return rendererIsFullscreen;
+}
+
void Host_ConnectWiimote(int wm_idx, bool connect) {}
void Host_SetWiiMoteConnectionState(int _State) {}
@@ -158,7 +164,7 @@ class PlatformX11 : public Platform
if (fullscreen)
{
- X11Utils::ToggleFullscreen(dpy, win);
+ rendererIsFullscreen = X11Utils::ToggleFullscreen(dpy, win);
#if defined(HAVE_XRANDR) && HAVE_XRANDR
XRRConfig->ToggleDisplayMode(True);
#endif
@@ -246,6 +252,7 @@ class PlatformX11 : public Platform
(unsigned int *)&SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowWidth,
(unsigned int *)&SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowHeight,
&borderDummy, &depthDummy);
+ rendererIsFullscreen = false;
}
usleep(100000);
}