[Spice-commits] server/red_worker.c
Alon Levy
alon at kemper.freedesktop.org
Fri Jan 7 07:47:53 PST 2011
server/red_worker.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 0438742dcc9fdf5f21afba1edc931632f51a55ed
Author: Alon Levy <alevy at redhat.com>
Date: Tue Jan 4 18:11:25 2011 +0200
server/red_worker: use 1, not 4 when lz_encoding a top down image
diff --git a/server/red_worker.c b/server/red_worker.c
index 937e0aa..dc7bc9e 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -5439,7 +5439,8 @@ static inline int red_lz_compress_image(DisplayChannel *display_channel,
lz_data->data.u.lines_data.reverse = 0;
lz_data->usr.more_lines = lz_usr_more_lines;
- size = lz_encode(lz, type, src->x, src->y, (src->flags & SPICE_BITMAP_FLAGS_TOP_DOWN),
+ size = lz_encode(lz, type, src->x, src->y,
+ !!(src->flags & SPICE_BITMAP_FLAGS_TOP_DOWN),
NULL, 0, src->stride,
(uint8_t*)lz_data->data.bufs_head->buf,
sizeof(lz_data->data.bufs_head->buf));
@@ -5588,7 +5589,7 @@ static int red_jpeg_compress_image(DisplayChannel *display_channel, SpiceImage *
lz_data->usr.more_lines = lz_usr_more_lines;
alpha_lz_size = lz_encode(lz, LZ_IMAGE_TYPE_XXXA, src->x, src->y,
- (src->flags & SPICE_BITMAP_FLAGS_TOP_DOWN),
+ !!(src->flags & SPICE_BITMAP_FLAGS_TOP_DOWN),
NULL, 0, src->stride,
lz_out_start_byte,
comp_head_left);
More information about the Spice-commits
mailing list