summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2006-07-30 14:14:01 +0200
committerLuc Verhaegen <libv@skynet.be>2006-07-30 14:14:01 +0200
commit5ee0a82d77f30b374b50ea33e30ef7ebaaa6e85f (patch)
treecc140548c4354d0e2aa0aebb8c06aee5de72fb0a
parentdc47154c229f9be0a13ce2209bbf00ec5862c174 (diff)
Xv: Fix broken bottom line when zooming out.
Funded by ONELAN: Digital signage systems (http://www.onelan.co.uk/)
-rw-r--r--src/via_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/via_video.c b/src/via_video.c
index 8fca328..5db7cf0 100644
--- a/src/via_video.c
+++ b/src/via_video.c
@@ -1571,7 +1571,7 @@ ViaSwovZoomV(struct ViaSwov *Swov, struct ViaXvPort *Port)
} else if (Src_H < Port->Drw_H) { /* Zoom in */
ScrnInfoPtr pScrn = xf86Screens[Swov->scrnIndex];
- tmp = Src_H * 0x0400 / Port->Drw_H;
+ tmp = Src_H * 0x0400 / Port->Drw_H - 1;
Swov->V3Shadow->Zoom |= ((tmp & 0x3ff) | V3_Y_ZOOM_ENABLE);
if ((VIAPTR(pScrn)->Chipset == VT3122) && (pScrn->currentMode->HDisplay > 1024))