mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
ui: rename cursor_{get->ref}, return it
The naming is more conventional in QEMU code, and allows to simplify some code by changing the API design, so it returns the input parameter, instead of void. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
3
ui/vnc.c
3
ui/vnc.c
@ -1032,8 +1032,7 @@ static void vnc_dpy_cursor_define(DisplayChangeListener *dcl,
|
||||
cursor_unref(vd->cursor);
|
||||
g_free(vd->cursor_mask);
|
||||
|
||||
vd->cursor = c;
|
||||
cursor_get(vd->cursor);
|
||||
vd->cursor = cursor_ref(vd->cursor);
|
||||
vd->cursor_msize = cursor_get_mono_bpl(c) * c->height;
|
||||
vd->cursor_mask = g_malloc0(vd->cursor_msize);
|
||||
cursor_get_mono_mask(c, 0, vd->cursor_mask);
|
||||
|
Reference in New Issue
Block a user