[Spice-devel] [PATCH 1/4] server/red_worker: cleanup lines starting with 5 spaces

Marc-André Lureau marcandre.lureau at gmail.com
Thu Jul 5 09:51:16 PDT 2012


ack

On Thu, Jul 5, 2012 at 6:42 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
>  server/red_worker.c |   26 +++++++++++++-------------
>  1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/server/red_worker.c b/server/red_worker.c
> index ef1b1b1..3092218 100644
> --- a/server/red_worker.c
> +++ b/server/red_worker.c
> @@ -6132,22 +6132,22 @@ static int red_jpeg_compress_image(DisplayChannelClient *dcc, SpiceImage *dest,
>          return TRUE;
>      }
>
> -     lz_data->data.bufs_head = jpeg_data->data.bufs_tail;
> -     lz_data->data.bufs_tail = lz_data->data.bufs_head;
> +    lz_data->data.bufs_head = jpeg_data->data.bufs_tail;
> +    lz_data->data.bufs_tail = lz_data->data.bufs_head;
>
> -     comp_head_filled = jpeg_size % sizeof(lz_data->data.bufs_head->buf);
> -     comp_head_left = sizeof(lz_data->data.bufs_head->buf) - comp_head_filled;
> -     lz_out_start_byte = ((uint8_t *)lz_data->data.bufs_head->buf) + comp_head_filled;
> +    comp_head_filled = jpeg_size % sizeof(lz_data->data.bufs_head->buf);
> +    comp_head_left = sizeof(lz_data->data.bufs_head->buf) - comp_head_filled;
> +    lz_out_start_byte = ((uint8_t *)lz_data->data.bufs_head->buf) + comp_head_filled;
>
> -     lz_data->data.dcc = dcc;
> +    lz_data->data.dcc = dcc;
>
> -     lz_data->data.u.lines_data.chunks = src->data;
> -     lz_data->data.u.lines_data.stride = src->stride;
> -     lz_data->data.u.lines_data.next = 0;
> -     lz_data->data.u.lines_data.reverse = 0;
> -     lz_data->usr.more_lines = lz_usr_more_lines;
> +    lz_data->data.u.lines_data.chunks = src->data;
> +    lz_data->data.u.lines_data.stride = src->stride;
> +    lz_data->data.u.lines_data.next = 0;
> +    lz_data->data.u.lines_data.reverse = 0;
> +    lz_data->usr.more_lines = lz_usr_more_lines;
>
> -     alpha_lz_size = lz_encode(lz, LZ_IMAGE_TYPE_XXXA, src->x, src->y,
> +    alpha_lz_size = lz_encode(lz, LZ_IMAGE_TYPE_XXXA, src->x, src->y,
>                                 !!(src->flags & SPICE_BITMAP_FLAGS_TOP_DOWN),
>                                 NULL, 0, src->stride,
>                                 lz_out_start_byte,
> @@ -7838,7 +7838,7 @@ static void red_lossy_marshall_qxl_drawable(RedWorker *worker, RedChannelClient
>      case QXL_DRAW_BLACKNESS:
>          red_lossy_marshall_qxl_draw_blackness(worker, rcc, base_marshaller, dpi);
>          break;
> -     case QXL_DRAW_WHITENESS:
> +    case QXL_DRAW_WHITENESS:
>          red_lossy_marshall_qxl_draw_whiteness(worker, rcc, base_marshaller, dpi);
>          break;
>      case QXL_DRAW_INVERS:
> --
> 1.7.10.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel



-- 
Marc-André Lureau


More information about the Spice-devel mailing list