mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
win32: remove a wine hack
No particular reason, but it's still possible that it causes additional corner cases, and it's not really needed to test this on wine (other than testing fullscreen stuff, which should be done on a real Windows anyway).
This commit is contained in:
@@ -1040,14 +1040,7 @@ static int reinit_window_state(struct vo_w32_state *w32)
|
||||
(int)(r.bottom - r.top));
|
||||
|
||||
SetWindowPos(w32->window, layer, r.left, r.top, r.right - r.left,
|
||||
r.bottom - r.top, SWP_FRAMECHANGED);
|
||||
// For some reason, moving SWP_SHOWWINDOW to a second call works better
|
||||
// with wine: returning from fullscreen doesn't cause a bogus resize to
|
||||
// screen size.
|
||||
// It's not needed on Windows XP or wine with a virtual desktop.
|
||||
// It doesn't seem to have any negative effects.
|
||||
SetWindowPos(w32->window, NULL, 0, 0, 0, 0,
|
||||
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_SHOWWINDOW);
|
||||
r.bottom - r.top, SWP_FRAMECHANGED | SWP_SHOWWINDOW);
|
||||
|
||||
signal_events(w32, VO_EVENT_RESIZE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user