mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Fix the "Adjust window size" option on linux. Previously this option caused flickering when using render to main, and an application hang when stopping emulation via the GUI Stop button.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6907 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -1607,6 +1607,10 @@ void Renderer::SetWindowSize(int width, int height)
|
||||
// Scale the window size by the EFB scale.
|
||||
CalculateTargetScale(width, height, width, height);
|
||||
|
||||
#if defined HAVE_X11 && HAVE_X11
|
||||
if (s_backbuffer_width != width || s_backbuffer_height != height)
|
||||
XMoveResizeWindow(GLWin.evdpy, GLWin.win, GLWin.x, GLWin.y, width, height);
|
||||
#endif
|
||||
g_VideoInitialize.pRequestWindowSize(width, height);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user