summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-29 21:11:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-30 06:57:06 +0100
commita88795c64123e4084044451d8861838ea904abd9 (patch)
tree8bfd69353c545878de2715b30901852ef4d43aa7
parent02bb0c5bc56df2790ffcd90d47d667dfd63b5407 (diff)
sna: Clear cursor image after rotation
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81886 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 8964e776..eed68d3a 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -4294,7 +4294,7 @@ static struct sna_cursor *__sna_get_cursor(struct sna *sna, xf86CrtcPtr crtc)
image = sna->cursor.scratch;
cursor->last_width = cursor->last_height = size;
}
- if (width < cursor->last_width || height < cursor->last_height)
+ if (width < cursor->last_width || height < cursor->last_height || rotation != cursor->rotation)
memset(image, 0, 4*size*size);
if (rotation == RR_Rotate_0) {
if (argb == NULL) {