diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-13 20:41:23 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-13 20:41:23 +0100 |
commit | 6c7f998f7bda4f4f1286e079412d5d3a5b2eb073 (patch) | |
tree | eba4b7534835f2231c72b104543aac184096df11 /src | |
parent | 2575cd0d236b4e1694e3185a487ebfd8bfe6499f (diff) |
sna: Fix BLT composite offset
Reported-by: Jiri Slaby <jirislaby@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54868
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_blt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c index 120d9a50..757447b6 100644 --- a/src/sna/sna_blt.c +++ b/src/sna/sna_blt.c @@ -1990,8 +1990,8 @@ sna_blt_composite__convert(struct sna *sna, } tmp->u.blt.src_pixmap = NULL; - tmp->u.blt.sx = x - dst_x; - tmp->u.blt.sy = y - dst_y; + tmp->u.blt.sx = tmp->src.offset[0]; + tmp->u.blt.sy = tmp->src.offset[1]; DBG(("%s: blt dst offset (%d, %d), source offset (%d, %d), with alpha fixup? %x\n", __FUNCTION__, tmp->dst.x, tmp->dst.y, tmp->u.blt.sx, tmp->u.blt.sy, alpha_fixup)); |