diff options
Diffstat (limited to 'ui/cursor.c')
-rw-r--r-- | ui/cursor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/cursor.c b/ui/cursor.c index 835f0802f9..6fe67990e2 100644 --- a/ui/cursor.c +++ b/ui/cursor.c @@ -106,12 +106,13 @@ QEMUCursor *cursor_alloc(int width, int height) return c; } -void cursor_get(QEMUCursor *c) +QEMUCursor *cursor_ref(QEMUCursor *c) { c->refcount++; + return c; } -void cursor_put(QEMUCursor *c) +void cursor_unref(QEMUCursor *c) { if (c == NULL) return; |