summaryrefslogtreecommitdiffstats
path: root/libvo/w32_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/w32_common.c')
-rw-r--r--libvo/w32_common.c3
1 files changed, 3 insertions, 0 deletions
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;