Graphics: Fix overwrite composition mode for animation frames not being honored

This commit is contained in:
Kovid Goyal
2025-11-08 00:03:44 +05:30
parent e20b2c7ebc
commit 09741e204e
3 changed files with 4 additions and 2 deletions

View File

@@ -146,6 +146,8 @@ Detailed list of changes
- icat kitten: Add support for APNG, netPBM, ICC color profiles and CCIP metadata to the builtin engine
- Graphics: Fix overwrite composition mode for animation frames not being honored
0.44.0 [2025-11-03]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -1590,7 +1590,7 @@ handle_animation_frame_load_command(GraphicsManager *self, GraphicsCommand *g, I
.x = g->x_offset, .y = g->y_offset,
.is_4byte_aligned = load_data->is_4byte_aligned,
.is_opaque = load_data->is_opaque,
.alpha_blend = g->blend_mode != 1 && !load_data->is_opaque,
.alpha_blend = g->compose_mode != 1 && !load_data->is_opaque,
.gap = g->gap > 0 ? g->gap : (g->gap < 0) ? 0 : DEFAULT_GAP,
.bgcolor = g->bgcolor,
};

View File

@@ -13,7 +13,7 @@ typedef struct {
uint32_t format, more, id, image_number, data_sz, data_offset, placement_id, quiet, parent_id, parent_placement_id;
uint32_t width, height, x_offset, y_offset;
union { uint32_t cursor_movement, compose_mode; };
union { uint32_t cell_x_offset, blend_mode; };
union { uint32_t cell_x_offset; };
union { uint32_t cell_y_offset, bgcolor; };
union { uint32_t data_width, animation_state; };
union { uint32_t data_height, loop_count; };