Signed-off-by: Francois Gouget <fgouget@xxxxxxxxxxxxxxx> --- I don't know if this is right but it is currently necessary to compile the Spice server. common/canvas_base.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/common/canvas_base.c b/common/canvas_base.c index 45dd75f..7f6231b 100644 --- a/common/canvas_base.c +++ b/common/canvas_base.c @@ -515,23 +515,6 @@ static pixman_image_t *canvas_get_jpeg(CanvasBase *canvas, SpiceImage *image) return surface; } -static void canvas_fix_alignment(uint8_t *bits, - int stride_encoded, int stride_pixman, - int height) -{ - if (stride_pixman > stride_encoded) { - // Fix the row alignment - int row; - uint8_t *dest = bits; - for (row = height - 1; row > 0; --row) { - uint32_t *dest_aligned, *dest_misaligned; - dest_aligned = (uint32_t *)(dest + stride_pixman*row); - dest_misaligned = (uint32_t*)(dest + stride_encoded*row); - memmove(dest_aligned, dest_misaligned, stride_encoded); - } - } -} - #ifdef USE_LZ4 static pixman_image_t *canvas_get_lz4(CanvasBase *canvas, SpiceImage *image) { -- 2.8.0.rc3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel