[Spice-devel] [RFCv5 33/47] server/red_worker: whitespace fixes

Alon Levy alevy at redhat.com
Sun May 8 06:11:29 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 aa77538..c8770d5 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -2667,6 +2667,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);
@@ -6034,7 +6035,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);
@@ -6606,7 +6607,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,
@@ -6923,13 +6924,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);
 }
@@ -9757,7 +9756,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.5.1



More information about the Spice-devel mailing list