summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPierre Ossman <pierre@ossman.eu>2009-02-07 18:56:42 +0100
committerPierre Ossman <pierre@ossman.eu>2009-02-07 18:56:42 +0100
commit2222f0fd700f100b2e91fac2babe7d1b53f56c3e (patch)
tree623ba189cf2109c11d43a91f81fa55cca97a11f4 /src
parent8ce6c024e31f6a3f5ae6c882738b1e64ae2944a1 (diff)
Fix bad range adjustment in VLINE code.
Diffstat (limited to 'src')
-rw-r--r--src/radeon_commonfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_commonfuncs.c b/src/radeon_commonfuncs.c
index 7e00384e..d69a9d8e 100644
--- a/src/radeon_commonfuncs.c
+++ b/src/radeon_commonfuncs.c
@@ -659,7 +659,7 @@ void FUNC_NAME(RADEONWaitForVLine)(ScrnInfoPtr pScrn, PixmapPtr pPix,
return;
start = max(start, 0);
- stop = max(stop, xf86_config->crtc[crtc]->mode.VDisplay);
+ stop = min(stop, xf86_config->crtc[crtc]->mode.VDisplay);
if (start > xf86_config->crtc[crtc]->mode.VDisplay)
return;