[MPlayer-cvslog] r28009 - trunk/libvo/vo_x11.c

reimar subversion at mplayerhq.hu
Sun Nov 23 21:39:15 CET 2008


Author: reimar
Date: Sun Nov 23 21:39:15 2008
New Revision: 28009

Log:
Do not draw in window if our image has not yet been adjusted to the new window size.
Fixes some cases of borders not being black in fullscreen when fullscreen image
is scaled down.


Modified:
   trunk/libvo/vo_x11.c

Modified: trunk/libvo/vo_x11.c
==============================================================================
--- trunk/libvo/vo_x11.c	(original)
+++ trunk/libvo/vo_x11.c	Sun Nov 23 21:39:15 2008
@@ -468,6 +468,11 @@ static void Display_Image(XImage * myxim
 {
     int x = (vo_dwidth - dst_width) / 2;
     int y = (vo_dheight - myximage->height) / 2;
+
+    // do not draw if the image needs rescaling
+    if ((old_vo_dwidth != vo_dwidth || old_vo_dheight != vo_dheight) && zoomFlag)
+      return;
+
     if (WinID == 0) {
       x = vo_dx;
       y = vo_dy;



More information about the MPlayer-cvslog mailing list