From 2db160217237b6fd591df2bea6a8079f7f181a7c Mon Sep 17 00:00:00 2001 From: Patrick Jakobsen Date: Thu, 28 Sep 2023 11:39:05 +0200 Subject: [PATCH] Fixed errorneous dirty-redraw of siblings --- gui/gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/gui.c b/gui/gui.c index 9e546c3..94aaedd 100644 --- a/gui/gui.c +++ b/gui/gui.c @@ -845,10 +845,11 @@ void gui_generate_draw_commands_inner( GUI_Node *sibling = GUI_NODE_SIBLING(node); if(sibling != NULL) { + GUI_Node *parent = GUI_NODE_PARENT(node); gui_generate_draw_commands_inner( x_offset, y_offset, sibling, - dirty || sibling->dirty, + parent->dirty || sibling->dirty, draw_command_arena, out_num_draw_commands); } GUI_Node *first_child = GUI_NODE_FIRST_CHILD(node);