Fix an issue in linux where if both render to main and fullscreen are checked the emulator started in fullscreen with the wrong window size.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5193 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c5a0e86123
commit
2bbef42c37
|
@ -693,13 +693,13 @@ void OpenGL_Update()
|
||||||
if ((ulong) event.xclient.data.l[0] == XInternAtom(GLWin.dpy, "TOGGLE_FULLSCREEN", False))
|
if ((ulong) event.xclient.data.l[0] == XInternAtom(GLWin.dpy, "TOGGLE_FULLSCREEN", False))
|
||||||
ToggleFullscreenMode();
|
ToggleFullscreenMode();
|
||||||
#if defined(HAVE_GTK2) && HAVE_GTK2 && defined(wxGTK)
|
#if defined(HAVE_GTK2) && HAVE_GTK2 && defined(wxGTK)
|
||||||
if (g_Config.RenderToMainframe &&
|
if (g_Config.RenderToMainframe && !GLWin.fs &&
|
||||||
(ulong) event.xclient.data.l[0] == XInternAtom(GLWin.dpy, "MAIN_RESIZED", False))
|
(ulong) event.xclient.data.l[0] == XInternAtom(GLWin.dpy, "MAIN_RESIZED", False))
|
||||||
{
|
{
|
||||||
GLWin.panel->GetSize((int *)&GLWin.width, (int *)&GLWin.height);
|
GLWin.panel->GetSize((int *)&GLWin.width, (int *)&GLWin.height);
|
||||||
XResizeWindow(GLWin.dpy, GLWin.win, GLWin.width, GLWin.height);
|
XResizeWindow(GLWin.dpy, GLWin.win, GLWin.width, GLWin.height);
|
||||||
}
|
}
|
||||||
if (g_Config.RenderToMainframe &&
|
if (g_Config.RenderToMainframe && !GLWin.fs &&
|
||||||
(ulong) event.xclient.data.l[0] == XInternAtom(GLWin.dpy, "WINDOW_REFOCUS", False))
|
(ulong) event.xclient.data.l[0] == XInternAtom(GLWin.dpy, "WINDOW_REFOCUS", False))
|
||||||
XSetInputFocus(GLWin.dpy, GLWin.win, RevertToPointerRoot, CurrentTime);
|
XSetInputFocus(GLWin.dpy, GLWin.win, RevertToPointerRoot, CurrentTime);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue