diff options
author | Matthias Hopf <mhopf@suse.de> | 2008-12-11 17:51:20 +0100 |
---|---|---|
committer | Matthias Hopf <mhopf@suse.de> | 2008-12-11 18:30:25 +0100 |
commit | fd77ce9f884f5ac4d36736f3a99ba86101f133ea (patch) | |
tree | 504eff0c211d7db0da0f9570b51785e68c010113 /randr | |
parent | f8e52f1b6d7c59d007de99a1c9c69c053d4f3cbe (diff) |
randr: Oops, miscalculated panning rectangle's coordinates
Diffstat (limited to 'randr')
-rw-r--r-- | randr/rrcrtc.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |