diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2010-06-01 10:30:58 +0300 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-06-09 11:41:02 +0200 |
commit | 8b023600330588b959b151a1242b05f385633f90 (patch) | |
tree | b61ec48ee4906680501dd4d93e427137b701a284 /server/red_worker.c | |
parent | ba32024ad1d9b36a22f8ea5b02a90e16624302e8 (diff) | |
download | spice-8b023600330588b959b151a1242b05f385633f90.tar.gz spice-8b023600330588b959b151a1242b05f385633f90.tar.xz spice-8b023600330588b959b151a1242b05f385633f90.zip |
init/destroy lossy surface region
Diffstat (limited to 'server/red_worker.c')
-rw-r--r-- | server/red_worker.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/red_worker.c b/server/red_worker.c index e8487ff1..b1fb6429 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -8965,6 +8965,7 @@ static void red_send_surface_create(DisplayChannel *display, SpiceMsgSurfaceCrea ASSERT(display); channel = &display->base; + region_init(&display->surface_client_lossy_region[surface_create->surface_id]); channel->send_data.header.type = SPICE_MSG_DISPLAY_SURFACE_CREATE; display->send_data.u.surface_create = *surface_create; @@ -8981,6 +8982,7 @@ static void red_send_surface_destroy(DisplayChannel *display, uint32_t surface_i ASSERT(display); channel = &display->base; + region_destroy(&display->surface_client_lossy_region[surface_id]); channel->send_data.header.type = SPICE_MSG_DISPLAY_SURFACE_DESTROY; display->send_data.u.surface_destroy.surface_id = surface_id; |