From da9e0988a60fb7ead9f2c8fd8e0fcb4db00aabe2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 20 Jun 2015 14:32:14 +0200 Subject: 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). --- video/out/w32_common.c | 9 +-------- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3