From 21e5719f74749fa6187539dc0805cb12759d66da Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 24 May 2012 09:56:06 +0300 Subject: qxl_surface: add download_box_no_update --- src/qxl_surface.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/qxl_surface.c b/src/qxl_surface.c index aef90ec..a5f8c9e 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@ -897,6 +897,16 @@ qxl_surface_flush (qxl_surface_t *surface) } /* access */ +static void +download_box_no_update (qxl_surface_t *surface, int x1, int y1, int x2, int y2) +{ + pixman_image_composite (PIXMAN_OP_SRC, + surface->dev_image, + NULL, + surface->host_image, + x1, y1, 0, 0, x1, y1, x2 - x1, y2 - y1); +} + static void download_box (qxl_surface_t *surface, int x1, int y1, int x2, int y2) { @@ -911,11 +921,7 @@ download_box (qxl_surface_t *surface, int x1, int y1, int x2, int y2) qxl_update_area(surface->cache->qxl); - pixman_image_composite (PIXMAN_OP_SRC, - surface->dev_image, - NULL, - surface->host_image, - x1, y1, 0, 0, x1, y1, x2 - x1, y2 - y1); + download_box_no_update(surface, x1, y1, x2, y2); } Bool -- cgit v1.2.3