Graphics protocol: Fix composing onto currently displayed frame not updating the frame on the GPU. Fixes #3874

This commit is contained in:
Kovid Goyal
2021-07-28 15:46:50 +05:30
parent a22404abe6
commit e872169e4c

View File

@@ -1362,6 +1362,7 @@ handle_compose_command(GraphicsManager *self, bool *is_dirty, const GraphicsComm
dest_frame->x = 0; dest_frame->y = 0; dest_frame->width = img->width; dest_frame->height = img->height;
dest_frame->base_frame_id = 0; dest_frame->bgcolor = 0;
*is_dirty = (g->other_frame_number - 1) == img->current_frame_index;
if (*is_dirty) update_current_frame(self, img, &dest_data);
}
// }}}