From df72bc57610bb2f58eec9801820ea11628b244eb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 9 Oct 2015 15:40:58 +0100 Subject: 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 --- src/sna/sna_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3