summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-11-08 16:37:53 -0800
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-11-08 16:37:53 -0800
commite784e152a8e84b6e447b55a5c7019e7b47e17621 (patch)
tree7e7c479a21fdec56d7031a805446ffa60422673f
parentb8770f710729d616b3ac72544aa522161a78f819 (diff)
Fix overlay destination clamping
The overlay width & height scaling clamp check was reversed. Fix that and update the comment.
-rw-r--r--src/i830_video.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/i830_video.c b/src/i830_video.c
index 255444be..73ae7719 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -2216,11 +2216,11 @@ I830PutImage(ScrnInfoPtr pScrn,
pI830->entityPrivate->XvInUse = i830_crtc_pipe (pPriv->current_crtc);;
}
- /* overlay limits */
- if(src_w > (drw_w * 7))
+ /* Clamp dst width & height to 7x of src (overlay limit) */
+ if(drw_w > (src_w * 7))
drw_w = src_w * 7;
- if(src_h > (drw_h * 7))
+ if(drw_h > (src_h * 7))
drw_h = src_h * 7;
/* Clip */