mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 15:45:54 +00:00
common, canvas_get_jpeg_alpha: let top_down be any value
Allow top_down flag to have any value, only ASSERT it is positive when needs to be positive and zero otherwise. Allows older server bug of sending 4 instead of 1 in top down flag to not affect newer clients (previous patch fixes server).
This commit is contained in:
parent
2a9f35a98f
commit
f0e27a2636
@ -612,7 +612,7 @@ static pixman_image_t *canvas_get_jpeg_alpha(CanvasBase *canvas,
|
||||
&lz_alpha_width, &lz_alpha_height, &n_comp_pixels,
|
||||
&lz_alpha_top_down, NULL);
|
||||
ASSERT(lz_alpha_type == LZ_IMAGE_TYPE_XXXA);
|
||||
ASSERT(lz_alpha_top_down == alpha_top_down);
|
||||
ASSERT(!!lz_alpha_top_down == !!alpha_top_down);
|
||||
ASSERT(lz_alpha_width == width);
|
||||
ASSERT(lz_alpha_height == height);
|
||||
ASSERT(n_comp_pixels == width * height);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user