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

Michel Dänzer michel at daenzer.net
Thu Jan 24 00:13:19 PST 2013


On Mit, 2013-01-23 at 12:08 -0500, Adam Jackson wrote: 
> 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

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the xorg-devel mailing list