aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-12-02 14:44:54 +0100
committerdec05eba <dec05eba@protonmail.com>2021-12-02 14:44:54 +0100
commitdf3eb74930491458f97a3328a68bf8526fef3caf (patch)
tree129dbc6e6d1c7c65af25d13427f92c45271f433e /tests
parent14770f42df291753a240def91fb488a904a909c1 (diff)
list set items position with rendering
Diffstat (limited to 'tests')
-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)) {