mirror of https://github.com/PCSX2/pcsx2.git
3rdparty: wxWidgets: Remove WS_POPUP style from ShowFullScreen
WS_POPUP causes fullscreen tearing when using OpenGL and the GSPanel rendering area exactly covers the full screen. (always affects stretch mode, but most people have 16:9 monitors, so in general the widescreen 16:9 mode is also affected). Fixes #1075
This commit is contained in:
parent
85489d05e0
commit
234bf8af34
|
@ -1104,7 +1104,13 @@ bool wxTopLevelWindowMSW::ShowFullScreen(bool show, long style)
|
|||
// decorations (and are definitely not children) and while not using
|
||||
// this style doesn't seem to make any difference for most windows, it
|
||||
// breaks wxGLCanvas in some cases, see #15434, so just always use it.
|
||||
newStyle |= WS_POPUP;
|
||||
|
||||
// PCSX2: WS_POPUP causes fullscreen tearing when using OpenGL and the
|
||||
// GSPanel rendering area exactly covers the full screen. (always
|
||||
// affects stretch mode, but most people have 16:9 monitors, so in
|
||||
// general the widescreen 16:9 mode is also affected). Let's remove the
|
||||
// window style.
|
||||
// newStyle |= WS_POPUP;
|
||||
|
||||
// change our window style to be compatible with full-screen mode
|
||||
::SetWindowLong(GetHwnd(), GWL_STYLE, newStyle);
|
||||
|
|
Loading…
Reference in New Issue