From 51174824b29fb628f3ed30cf2707d82332b8139d Mon Sep 17 00:00:00 2001 From: Patrick Jakobsen Date: Sun, 1 Oct 2023 12:34:21 +0200 Subject: [PATCH] A fix for dirtiness --- gui/gui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/gui.c b/gui/gui.c index 29cec61..2cef826 100644 --- a/gui/gui.c +++ b/gui/gui.c @@ -852,6 +852,7 @@ void gui_generate_draw_commands_inner( DEBUG("%.*s: dirtiness: %b\n", node->debug_string.length, node->debug_string.cstring, dirty); if(dirty) { + node->dirty = true; GUI_Draw_Command *draw_command = arena_allocate_draw_command(draw_command_arena); DEBUG("%d, %d, %d, %x, %d, %u\n", node->style->red, node->style->green, node->style->blue, node->style->border_color, node->style->border_thickness, node->style->roundedness); @@ -3648,9 +3649,9 @@ int main(void) //gui = test_gui; //gui = test_gui__calculator; - gui = test_gui__scrollbars; + //gui = test_gui__scrollbars; //gui = test_gui__draw_command_using_sliders; - //gui = test_gui__subtree; + gui = test_gui__subtree; //gui = test_gui__tmp; X11_Window xwindow = {0};