summaryrefslogtreecommitdiff
path: root/common/canvas_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/canvas_base.c')
-rw-r--r--common/canvas_base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/canvas_base.c b/common/canvas_base.c
index 2f22400..7394105 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -543,6 +543,9 @@ static pixman_image_t *canvas_get_lz4(CanvasBase *canvas, SpiceImage *image)
stride_encoded *= 2;
break;
case SPICE_BITMAP_FMT_24BIT:
+ format = PIXMAN_r8g8b8;
+ stride_encoded *= 3;
+ break;
case SPICE_BITMAP_FMT_32BIT:
format = PIXMAN_x8r8g8b8;
stride_encoded *= 4;