[Spice-devel] [RFC v4 44/62] server/red_worker: whitespace fixes

Alon Levy alevy at redhat.com
Tue Apr 26 03:55:09 PDT 2011


---
 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 75d222f..6014cb3 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);
     }
 
-- 
1.7.4.4



More information about the Spice-devel mailing list