diff options
author | wm4 <wm4@nowhere> | 2015-06-20 14:32:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-20 14:32:14 +0200 |
commit | da9e0988a60fb7ead9f2c8fd8e0fcb4db00aabe2 (patch) | |
tree | 248f99d642fa574e90fb8ef5cbc069b21e03e095 | |
parent | 91fdfd388039c31a446b80aae526ebe5694c91e9 (diff) |
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).
-rw-r--r-- | video/out/w32_common.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index a3c03f898d..5197ad054c 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -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); |