mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 11:40:12 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue