aboutsummaryrefslogtreecommitdiff
path: root/tests/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.c')
-rw-r--r--tests/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/main.c b/tests/main.c
index e1aa6f1..e02d4bb 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -13,7 +13,7 @@
static mgui_list* create_list_item(const char *title, const char *description) {
mgui_list *container = mgui_list_create(MGUI_LIST_HORIZONITAL);
mgui_list_set_background_color(container, (mgl_color){ 255, 0, 0, 255 });
- mgui_list_append(container, mgui_button_to_widget(mgui_button_create()));
+ mgui_list_append(container, mgui_button_to_widget(mgui_button_create("button", 6, 30)));
mgui_list *list = mgui_list_create(MGUI_LIST_VERTICAL);
mgui_list_append(container, mgui_list_to_widget(list));
@@ -54,6 +54,7 @@ int main() {
mgl_window_display(&window);
}
+ mgui_widget_destroy(mgui_scrollview_to_widget(scrollview));
mgl_deinit();
return 0;
}