changeset 27975:806c541d03dd

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.
author reimar
date Sun, 23 Nov 2008 20:39:15 +0000
parents dbcae9cd24b2
children 3f4990a693c2
files libvo/vo_x11.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_x11.c	Sun Nov 23 20:20:51 2008 +0000
+++ b/libvo/vo_x11.c	Sun Nov 23 20:39:15 2008 +0000
@@ -468,6 +468,11 @@
 {
     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;