diff libvo/vo_x11.c @ 2274:9ee34c6950e0

xinc scaled by 16 instead of 8
author arpi
date Fri, 19 Oct 2001 02:21:47 +0000
parents 36fa77e785d4
children 50037e53d0bc
line wrap: on
line diff
--- a/libvo/vo_x11.c	Fri Oct 19 02:16:21 2001 +0000
+++ b/libvo/vo_x11.c	Fri Oct 19 02:21:47 2001 +0000
@@ -178,11 +178,11 @@
          image_width=vo_screenwidth;
          image_height=vo_screenheight;
      } else {
-         image_width=d_width&(~3);
+         image_width=d_width&(~7);
          image_height=d_height;
      }
-     scale_xinc=(width << 8) / image_width - 1;  // -1 needed for proper rounding
-     scale_yinc=(height << 16) / image_height;
+     scale_xinc=(width << 16) / image_width - 2;  // needed for proper rounding
+     scale_yinc=(height << 16) / image_height +2;
      SwScale_Init();
  }