Browse Source

A fix for dirtiness

master
Patrick Jakobsen 7 months ago
parent
commit
51174824b2
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      gui/gui.c

+ 3
- 2
gui/gui.c View File

@ -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};

Loading…
Cancel
Save