[PATCH] randr: Fix a copypasta bug in CRTC confinement

Adam Jackson ajax at redhat.com
Wed Jan 23 09:08:41 PST 2013


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 randr/rrpointer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/randr/rrpointer.c b/randr/rrpointer.c
index ec803e9..eb6b677 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
-- 
1.8.1



More information about the xorg-devel mailing list