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>
This commit is contained in:
parent
47ff382d1f
commit
1c8beedfe4
|
@ -82,7 +82,7 @@ RRPointerToNearestCrtc(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y,
|
||||||
else
|
else
|
||||||
dx = 0;
|
dx = 0;
|
||||||
if (y < crtc->y)
|
if (y < crtc->y)
|
||||||
dy = crtc->y - x;
|
dy = crtc->y - y;
|
||||||
else if (y > crtc->y + scan_height)
|
else if (y > crtc->y + scan_height)
|
||||||
dy = y - (crtc->y + scan_height);
|
dy = y - (crtc->y + scan_height);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user