aboutsummaryrefslogtreecommitdiff
path: root/tests/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.c')
-rw-r--r--tests/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/main.c b/tests/main.c
index 6a94414..79afbea 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -13,8 +13,8 @@ int main() {
return 1;
mgui_list *list = mgui_list_create(MGUI_LIST_VERTICAL);
- mgui_button *button = mgui_button_create();
- mgui_list_append(list, mgui_button_to_widget(button));
+ mgui_list_append(list, mgui_button_to_widget(mgui_button_create()));
+ mgui_list_append(list, mgui_button_to_widget(mgui_button_create()));
mgl_event event;
while(mgl_window_is_open(&window)) {