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>
This commit is contained in:
Chris Wilson 2015-10-09 15:40:58 +01:00
parent 5793183c82
commit df72bc5761
1 changed files with 2 additions and 2 deletions

View File

@ -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