diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-17 13:09:47 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-17 13:11:11 +0000 |
commit | 1ee00c408d8142cfaf4202393c2364c9ae73cb6e (patch) | |
tree | af2ee372b78680de002284b377ed7e698a7677d2 /src/sna/sna_trapezoids.c | |
parent | 0d749f93ea52161e59da1adca1a22e96ba293551 (diff) |
sna/trapezoids: Fix horizontal offset for inplace operation
Remember that for an inplace operation we are not dealing with an a8
mask, but rather a x8r8g8b8 surface and so need to step accordingly.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids.c')
-rw-r--r-- | src/sna/sna_trapezoids.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c index 266983e5..2a51598c 100644 --- a/src/sna/sna_trapezoids.c +++ b/src/sna/sna_trapezoids.c @@ -5193,7 +5193,7 @@ trapezoid_span_inplace__x8r8g8b8(CARD8 op, struct inplace inplace; inplace.ptr = pixmap->devPrivate.ptr; - inplace.ptr += dst_y * pixmap->devKind + dst_x; + inplace.ptr += dst_y * pixmap->devKind + dst_x * 4; inplace.stride = pixmap->devKind; inplace.color = color; |