From 09741e204e716b52b9063532db191fdae99d5039 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 8 Nov 2025 00:03:44 +0530 Subject: [PATCH] Graphics: Fix overwrite composition mode for animation frames not being honored --- docs/changelog.rst | 2 ++ kitty/graphics.c | 2 +- kitty/graphics.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 295f4811a..4a279ea15 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/graphics.c b/kitty/graphics.c index c1b8c5c70..c06cfe695 100644 --- a/kitty/graphics.c +++ b/kitty/graphics.c @@ -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, }; diff --git a/kitty/graphics.h b/kitty/graphics.h index 50de464b5..84e5d6d57 100644 --- a/kitty/graphics.h +++ b/kitty/graphics.h @@ -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; };