diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-25 16:21:41 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-25 16:21:41 +0000 |
commit | 16f5e224dcfd97012b38ee1af6c72dbe3c0f3304 (patch) | |
tree | baed376b0bb980e9f69e4334195daae987b8487d | |
parent | e06789871b5cdf0c5535d46622b8ec3f85eb4386 (diff) |
sna: Avoid the double application of drawable offsets for tiled spans
As we handle tiled spans indirectly, we need to avoid applying the
drawable offsets twice (once in the mi layer generating the spans, and
then once more in the tiled rect renderer).
Reported-by: Ulrich Müller <ulm@gentoo.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43245
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 1a35c4de..03020c93 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2790,9 +2790,9 @@ sna_fill_spans(DrawablePtr drawable, GCPtr gc, int n, return; for (i = 0; i < n; i++) { - rect[i].x = pt[i].x; + rect[i].x = pt[i].x - drawable->x; rect[i].width = width[i]; - rect[i].y = pt[i].y; + rect[i].y = pt[i].y - drawable->y; rect[i].height = 1; } |