From 52d941308bd9d8cfcf499008e52990fc81fa066a Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Fri, 27 Sep 2013 15:44:38 +0200 Subject: display: reuse code in display_channel_draw_until --- server/red_worker.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/red_worker.c') diff --git a/server/red_worker.c b/server/red_worker.c index ac50be4f..ccb07fe9 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -484,7 +484,7 @@ static void dcc_detach_stream_gracefully(DisplayChannelClient *dcc, stream_id, stream->current != NULL); rect_debug(&upgrade_area); if (update_area_limit) { - display_channel_draw_till(DCC_TO_DC(dcc), &upgrade_area, 0, update_area_limit); + display_channel_draw_until(DCC_TO_DC(dcc), &upgrade_area, 0, update_area_limit); } else { display_channel_draw(DCC_TO_DC(dcc), &upgrade_area, 0); } @@ -1655,8 +1655,7 @@ static void red_add_lossless_drawable_dependencies(RedChannelClient *rcc, } else { sync_rendered = FALSE; for (i = 0; i < num_deps; i++) { - display_channel_draw_till(display, deps_areas[i], - deps_surfaces_ids[i], item); + display_channel_draw_until(display, deps_areas[i], deps_surfaces_ids[i], item); } } -- cgit v1.2.3