Fixed errorneous dirty-redraw of siblings

This commit is contained in:
Patrick Jakobsen committed 2023-09-28 11:39:05 +02:00
1 parent 9477dc3115
commit 2db1602172
1 file changed
+2 -1
+2 -1
View File
@@ -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);