changeset 27977:452231ce45b9

Clear the whole window on resize in vo_x11 since we do not yet know how large the borders will be.
author reimar
date Sun, 23 Nov 2008 20:49:05 +0000
parents 3f4990a693c2
children 9fb2ae256b5c
files libvo/vo_x11.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_x11.c	Sun Nov 23 20:47:04 2008 +0000
+++ b/libvo/vo_x11.c	Sun Nov 23 20:49:05 2008 +0000
@@ -89,7 +89,9 @@
 {
     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)