summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-05 14:32:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-05 14:33:43 +0000
commitc5d94b21d5c65dcae3e294412a8f20bad347a6d8 (patch)
tree594249acd3b50d164e61d09739e0f692d8b91b26
parent0cf29afda9b061455bc438a22bbbfb1d6db6528e (diff)
sna: Extend the zero-line segments by one
Fixes misrendering of the wine tabs Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42606 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 19f8a805..3c8322ff 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -3534,7 +3534,7 @@ rectangle_continue:
b->x1 = x;
b->y2 = b->y1 = y;
- while (--length) {
+ while (length--) {
e += e1;
x++;
if (e >= 0) {
@@ -3615,7 +3615,7 @@ X_continue2:
b->x2 = b->x1 = x;
b->y1 = y;
- while (--length) {
+ while (length--) {
e += e1;
y += sdy;
if (e >= 0) {
@@ -4540,7 +4540,7 @@ rectangle_continue:
b->x1 = x1;
b->y2 = b->y1 = y1;
- while (--length) {
+ while (length--) {
e += e1;
x1++;
if (e >= 0) {
@@ -4619,7 +4619,7 @@ X_continue2:
b->x2 = b->x1 = x1;
b->y1 = y1;
- while (--length) {
+ while (length--) {
e += e1;
y1 += sdy;
if (e >= 0) {