Host: Add Host_RendererIsFullscreen().

This commit is contained in:
Jules Blok
2015-01-04 17:09:56 +01:00
parent 3b9c070ee0
commit b7e056c74d
9 changed files with 33 additions and 4 deletions

View File

@ -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);
}