summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-23 20:49:05 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-23 20:49:05 +0000
commit6c3457bd0e87fcbb43d4af2f480084cf92a52530 (patch)
treea310137b3045a314639401c066b5a88a1f56401a /libvo
parent7428efabee6629a2d63c00900a4c9c498c815a1f (diff)
downloadmpv-6c3457bd0e87fcbb43d4af2f480084cf92a52530.tar.bz2
mpv-6c3457bd0e87fcbb43d4af2f480084cf92a52530.tar.xz
Clear the whole window on resize in vo_x11 since we do not
yet know how large the borders will be. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28011 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_x11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 98538c5d5f..c1c8ef79ce 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -89,7 +89,9 @@ static void check_events(void)
{
int ret = vo_x11_check_events(mDisplay);
- if ((ret & VO_EVENT_RESIZE) || (ret & VO_EVENT_EXPOSE))
+ if (ret & VO_EVENT_RESIZE)
+ vo_x11_clearwindow(mDisplay, vo_window);
+ else if (ret & VO_EVENT_EXPOSE)
vo_x11_clearwindow_part(mDisplay, vo_window, myximage->width,
myximage->height, 0);
if (ret & VO_EVENT_EXPOSE && int_pause)