aboutsummaryrefslogtreecommitdiff
path: root/apps/window.c
diff options
context:
space:
mode:
authorMarvin Borner2020-11-05 17:30:39 +0100
committerMarvin Borner2020-11-05 17:32:53 +0100
commit63e86f792167e6cc2e9600d00b184a3c83fe7498 (patch)
tree31e2d583be3ebf34782f6ec37f6c524657c40686 /apps/window.c
parent916fca2161e76de67a5106b90baf00a57f2a0512 (diff)
Added warning flags and fixed them :)
Diffstat (limited to 'apps/window.c')
-rw-r--r--apps/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/window.c b/apps/window.c
index 4f2aec7..7e1b4be 100644
--- a/apps/window.c
+++ b/apps/window.c
@@ -20,8 +20,8 @@ int main()
struct element *root = gui_init("test", 600, 400, COLOR_BG);
struct element *container =
gui_add_container(root, 0, 0, root->ctx->width / 2, root->ctx->height, COLOR_RED);
- struct element *button =
- gui_add_button(container, 10, 10, FONT_24, "Button", COLOR_WHITE, COLOR_BLACK);
+ struct element *button = gui_add_button(container, 10, 10, FONT_24, strdup("Button"),
+ COLOR_WHITE, COLOR_BLACK);
struct element *text_input =
gui_add_text_input(container, 10, 50, 200, FONT_24, COLOR_WHITE, COLOR_BLACK);
(void)text_input;