summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-06-13 14:26:36 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-13 14:34:22 +0100
commit33998a7080aa7f50ba922c764c6a93fe951c5b64 (patch)
tree51353333d128ef574a98ce5a48f7841c81614b5a
parent0ade32fbad4014efcc8aa8ed4cd0f8a39f9ab107 (diff)
sna: Fix typo and compare y1 to y2
It seems 'y1' was meant to be compared here Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 9da0198e..07806b2f 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -7630,7 +7630,7 @@ sna_poly_segment(DrawablePtr drawable, GCPtr gc, int n, xSegment *seg)
if (seg[i].y1 < seg[i].y2) {
rect[i].y = seg[i].y1;
rect[i].height = seg[i].y2 - seg[i].y1 + 1;
- } else if (seg[i].x1 > seg[i].y2) {
+ } else if (seg[i].y1 > seg[i].y2) {
rect[i].y = seg[i].y2;
rect[i].height = seg[i].y1 - seg[i].y2 + 1;
} else {