summaryrefslogtreecommitdiff
path: root/src/sna/sna_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_display.c')
-rw-r--r--src/sna/sna_display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index d3275836..35f4ea35 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -3161,6 +3161,8 @@ static struct sna_cursor *__sna_get_cursor(struct sna *sna, xf86CrtcPtr crtc)
}
}
+ if (width != size || height != size)
+ memset(cursor->image, 0, 4*size*size);
if (rotation == RR_Rotate_0) {
memcpy_blt(src, cursor->image, 32,
width * 4, size * 4,