summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-19 02:21:47 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-19 02:21:47 +0000
commit793efa116b6b61193dc13f8847a37424e13e1112 (patch)
tree82165a44eaa877a9882c496976934603665fe36c /libvo
parent2a680c8d21deddedeafac3cdb380a8c2ff7fcd22 (diff)
downloadmpv-793efa116b6b61193dc13f8847a37424e13e1112.tar.bz2
mpv-793efa116b6b61193dc13f8847a37424e13e1112.tar.xz
xinc scaled by 16 instead of 8
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2275 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 9ba5edbf96..547d59f46a 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -178,11 +178,11 @@ static uint32_t init( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d
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();
}