summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i830_video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_video.c b/src/i830_video.c
index 5e93a5ea..fed8c564 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -1297,8 +1297,8 @@ I830DisplayVideo(ScrnInfoPtr pScrn, int id, short width, short height,
/*
* Y down-scale factor as a multiple of 4096.
*/
- xscaleFract = (src_w << 12) / drw_w;
- yscaleFract = (src_h << 12) / drw_h;
+ xscaleFract = ((src_w - 1) << 12) / drw_w;
+ yscaleFract = ((src_h - 1) << 12) / drw_h;
/* Calculate the UV scaling factor. */
xscaleFractUV = xscaleFract / uvratio;