summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-10-09 15:40:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-10-09 15:40:58 +0100
commitdf72bc57610bb2f58eec9801820ea11628b244eb (patch)
tree54367e17c58ff634e02fe6bbf9c5e5625dcbf546 /src
parent5793183c8247b42baa3c4577a3d84d554d589160 (diff)
sna: Avoid truncating the cursor when scaling up
The affine_blt walks the destination image sampling from the source, so we need to walk all the output pixels and not the source size. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 554c2707..a6172189 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -5405,14 +5405,14 @@ static struct sna_cursor *__sna_get_cursor(struct sna *sna, xf86CrtcPtr crtc)
if (transformed) {
affine_blt(image, cursor->image, 32,
0, 0, width, height, size * 4,
- 0, 0, width, height, size * 4,
+ 0, 0, size, size, size * 4,
&to_sna_crtc(crtc)->cursor_to_fb);
image = cursor->image;
}
} else if (transformed) {
affine_blt(argb, cursor->image, 32,
0, 0, width, height, width * 4,
- 0, 0, width, height, size * 4,
+ 0, 0, size, size, size * 4,
&to_sna_crtc(crtc)->cursor_to_fb);
image = cursor->image;
} else