mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Host: Add Host_RendererIsFullscreen().
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user