From 265c1a174e2190dc510774958126abcc01cc2d7d Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 22 Jun 2007 22:06:58 +0000 Subject: [PATCH] Hack around some fullscreen issues with gl under Windows (non-fullscreen window would not always return to original size). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23607 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/w32_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvo/w32_common.c b/libvo/w32_common.c index b0e62ec529..ebd1edb1d9 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -277,6 +277,9 @@ static int createRenderingContext(void) { vo_dx = xinerama_x; vo_dy = xinerama_y; } else { + // make sure there are no "stale" resize events + // that would set vo_d* to wrong values + vo_w32_check_events(); vo_dwidth = prev_width; vo_dheight = prev_height; vo_dx = prev_x;