summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-03-28 08:45:39 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-03-28 08:46:25 +0000
commit78805163c5f8a40a649c973ab2a08b682879f16d (patch)
tree5b40737ee9c8268ce9014d7d3b6001171b8c0d80
parente07f8e2e625fb34f9ad795ca8fffc9a9e88e25b2 (diff)
sna: RefCursor is too recent
Replace RefCursor with the simple refcnt manipulation for compilation against older stacks. 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 0eac2672..8b099918 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -3435,7 +3435,7 @@ sna_use_hw_cursor(ScreenPtr screen, CursorPtr cursor)
{
struct sna *sna = to_sna_from_screen(screen);
- cursor = RefCursor(cursor);
+ cursor->refcnt++;
if (sna->cursor.ref)
FreeCursor(sna->cursor.ref, None);
sna->cursor.ref = cursor;