diff options
author | Marvin Borner | 2020-11-01 00:02:33 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-01 00:02:33 +0100 |
commit | e0d3b1671b3f94657d70223b51285ed287c882df (patch) | |
tree | 53bbe85c5504b869bc118a14eff468b647ae2d7b /libgui/gui.c | |
parent | c35a83655707c9aae8f728eb850255ad0f115d11 (diff) |
New binary directory structure
Diffstat (limited to 'libgui/gui.c')
-rw-r--r-- | libgui/gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgui/gui.c b/libgui/gui.c index 675081e..db7845a 100644 --- a/libgui/gui.c +++ b/libgui/gui.c @@ -155,6 +155,7 @@ struct element *gui_add_button(struct element *container, int x, int y, enum fon list_add(container->childs, button); gui_sync_button(button); merge_elements(get_root(container->window_id)); + gfx_redraw_focused(); return button; } @@ -185,6 +186,7 @@ struct element *gui_add_label(struct element *container, int x, int y, enum font list_add(container->childs, label); gui_sync_label(label); merge_elements(get_root(container->window_id)); + gfx_redraw_focused(); return label; } @@ -214,6 +216,7 @@ struct element *gui_add_text_input(struct element *container, int x, int y, u32 list_add(container->childs, text_input); gui_sync_text_input(text_input); merge_elements(get_root(container->window_id)); + gfx_redraw_focused(); return text_input; } @@ -242,6 +245,7 @@ struct element *gui_add_container(struct element *container, int x, int y, u32 w list_add(container->childs, new_container); gui_sync_container(new_container); merge_elements(get_root(container->window_id)); + gfx_redraw_focused(); return new_container; } |