diff --git a/protocols/vnc/src/vnc_client.c b/protocols/vnc/src/vnc_client.c index 89557127..24401558 100644 --- a/protocols/vnc/src/vnc_client.c +++ b/protocols/vnc/src/vnc_client.c @@ -238,7 +238,7 @@ void guac_vnc_update(rfbClient* client, int x, int y, int w, int h) { /* For now, only use default layer */ surface = cairo_image_surface_create_for_data(buffer, CAIRO_FORMAT_RGB24, w, h, stride); - guac_layer_png(gc->default_layer, GUAC_COMP_OVER, x, y, surface); + guac_client_queue_png(gc, GUAC_COMP_OVER, GUAC_DEFAULT_LAYER, x, y, surface); /* Free buffer when surface is destroyed */ cairo_surface_set_user_data(surface, &__GUAC_VNC_BUFFER, buffer, guac_vnc_cairo_free); @@ -250,9 +250,9 @@ void guac_vnc_copyrect(rfbClient* client, int src_x, int src_y, int w, int h, in guac_client* gc = rfbClientGetClientData(client, __GUAC_CLIENT); /* For now, only use default layer */ - guac_layer_copy(gc->default_layer, GUAC_COMP_OVER, - gc->default_layer, src_x, src_y, w, h, - dest_x, dest_y); + guac_client_queue_copy(gc, + GUAC_DEFAULT_LAYER, src_x, src_y, w, h, + GUAC_COMP_OVER, GUAC_DEFAULT_LAYER, dest_x, dest_y); ((vnc_guac_client_data*) gc->data)->copy_rect_used = 1; @@ -305,7 +305,7 @@ int vnc_guac_client_handle_messages(guac_client* client) { } - guac_layer_flush(client->default_layer, client->io); + guac_client_queue_flush(client); return 0; }