summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-08-21 14:12:52 -0400
committerAdam Jackson <ajax@redhat.com>2013-09-10 13:26:25 -0400
commit1c8beedfe4343377fa3504f8ab71430cc137b22c (patch)
tree5414473a1538fb2fc0c73a16d582fd5c48d196a7 /randr
parent47ff382d1fce25a8b097d45b79489e891f1f1228 (diff)
randr: Fix a copypasta bug in CRTC confinement
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'randr')
-rw-r--r--randr/rrpointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrpointer.c b/randr/rrpointer.c
index ec803e9d1..eb6b6770c 100644
--- a/randr/rrpointer.c
+++ b/randr/rrpointer.c
@@ -82,7 +82,7 @@ RRPointerToNearestCrtc(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y,
else
dx = 0;
if (y < crtc->y)
- dy = crtc->y - x;
+ dy = crtc->y - y;
else if (y > crtc->y + scan_height)
dy = y - (crtc->y + scan_height);
else