diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-22 22:06:58 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-22 22:06:58 +0000 |
commit | 265c1a174e2190dc510774958126abcc01cc2d7d (patch) | |
tree | 7b897af0034f163c0b818a47a290de5c6a4df925 /libvo/w32_common.c | |
parent | a969d1681bfb1e2de9e4bc7098c3974e64335032 (diff) | |
download | mpv-265c1a174e2190dc510774958126abcc01cc2d7d.tar.bz2 mpv-265c1a174e2190dc510774958126abcc01cc2d7d.tar.xz |
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
Diffstat (limited to 'libvo/w32_common.c')
-rw-r--r-- | libvo/w32_common.c | 3 |
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; |