diff options
author | Alon Levy <alevy@redhat.com> | 2011-04-22 23:04:27 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-04-26 13:50:58 +0300 |
commit | 4f48b7929bdab3ff75666e75754f66d8e8867be7 (patch) | |
tree | 662002d1e5cf2aa4738cae2974c8ea512d2e1341 | |
parent | 466de5a007c5f33a8cbbef76182c7a4a4c30bc39 (diff) |
server/red_worker: whitespace fixes
-rw-r--r-- | server/red_worker.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/red_worker.c b/server/red_worker.c index 75d222f2..6014cb3a 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -2644,6 +2644,7 @@ static void red_display_client_init_streams(DisplayChannelClient *dcc) static void red_display_destroy_streams(DisplayChannelClient *dcc) { int i; + for (i = 0; i < NUM_STREAMS; i++) { StreamAgent *agent = &dcc->stream_agents[i]; region_destroy(&agent->vis_region); @@ -6007,7 +6008,7 @@ static inline int red_compress_image(DisplayChannelClient *dcc, if (can_lossy && display_channel->enable_jpeg && ((image_compression == SPICE_IMAGE_COMPRESS_AUTO_LZ) || (image_compression == SPICE_IMAGE_COMPRESS_AUTO_GLZ))) { - // if we use lz for alpha, the stride can't be extra + // if we use lz for alpha, the stride can't be extra if (src->format != SPICE_BITMAP_FMT_RGBA || !_stride_is_extra(src)) { return red_jpeg_compress_image(dcc, dest, src, o_comp_data, drawable->group_id); @@ -6578,7 +6579,7 @@ static void red_pipe_replace_rendered_drawables_with_images(RedWorker *worker, continue; // item hasn't been rendered // When a drawable command, X, depends on bitmaps that were resent, - // these bitmaps state at the client might not be synchronized with X + // these bitmaps state at the client might not be synchronized with X // (i.e., the bitmaps can be more futuristic w.r.t X). Thus, X shouldn't // be rendered at the client, and we replace it with an image as well. if (!drawable_depends_on_areas(drawable, @@ -6895,13 +6896,11 @@ static void red_lossy_marshall_qxl_draw_copy(RedWorker *worker, &drawable->u.copy.src_area, item, &src_bitmap_data); src_send_type = red_marshall_qxl_draw_copy(worker, rcc, base_marshaller, item, TRUE); - if (src_send_type == FILL_BITS_TYPE_COMPRESS_LOSSY) { src_is_lossy = TRUE; } else if (src_send_type == FILL_BITS_TYPE_COMPRESS_LOSSLESS) { src_is_lossy = FALSE; } - surface_lossy_region_update(worker, dcc, item, has_mask, src_is_lossy); } @@ -9735,7 +9734,7 @@ static void handle_new_display_channel(RedWorker *worker, RedClient *client, Red if (worker->zlib_glz_state == SPICE_WAN_COMPRESSION_AUTO) { display_channel->enable_zlib_glz_wrap = is_low_bandwidth; } else { - display_channel->enable_zlib_glz_wrap = (worker->zlib_glz_state == + display_channel->enable_zlib_glz_wrap = (worker->zlib_glz_state == SPICE_WAN_COMPRESSION_ALWAYS); } |