diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-24 08:58:48 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-24 09:07:04 +0000 |
commit | 872a296850312956851f61cacb4f66c63ff990b8 (patch) | |
tree | d921167f3f8ca8d8955c95d9db32ade88c6679ac | |
parent | fef0f3dc0ca8d7f6e50fd841a7fff23a4d357121 (diff) |
sna: Discard addition of drawable offset if 0
Missing trim of "add 0" from
commit 0b7a6666f82b4fa07f9c9d9a9c1819efc363b31b
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Mon Jan 5 14:00:44 2015 +0000
sna: Partially unroll conversion of rectangles to boxes for fills
not all redundant +(dx,dy) were dropped.
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 b98c94f7..7c7c734d 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -11849,8 +11849,8 @@ sna_poly_fill_rect_blt(DrawablePtr drawable, b[0].x2 = b[0].x1 + rect[0].width; b[0].y2 = b[0].y1 + rect[0].height; - b[1].x1 = rect[1].x + dx; - b[1].y1 = rect[1].y + dy; + b[1].x1 = rect[1].x; + b[1].y1 = rect[1].y; b[1].x2 = b[1].x1 + rect[1].width; b[1].y2 = b[1].y1 + rect[1].height; |