From fd77ce9f884f5ac4d36736f3a99ba86101f133ea Mon Sep 17 00:00:00 2001 From: Matthias Hopf Date: Thu, 11 Dec 2008 17:51:20 +0100 Subject: randr: Oops, miscalculated panning rectangle's coordinates --- randr/rrcrtc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'randr/rrcrtc.c') diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index 99f7d1ea1..b504b0c9b 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -1098,12 +1098,12 @@ ProcRRSetPanning (ClientPtr client) total.x1 = stuff->left; total.y1 = stuff->top; - total.x2 = stuff->width - total.x1; - total.y2 = stuff->height - total.y1; + total.x2 = total.x1 + stuff->width; + total.y2 = total.y1 + stuff->height; tracking.x1 = stuff->track_left; tracking.y1 = stuff->track_top; - tracking.x2 = stuff->track_width - tracking.x1; - tracking.y2 = stuff->track_height - tracking.y1; + tracking.x2 = tracking.x1 + stuff->track_width; + tracking.y2 = tracking.y1 + stuff->track_height; border[0] = stuff->border_left; border[1] = stuff->border_top; border[2] = stuff->border_right; -- cgit v1.2.3