void a_menu_addItem(Menu* const m, void* const v) { ListNode* const n = a_list_addLast(m->items, v); if(m->selectedNode == NULL) { m->selectedNode = n; } }
void gui_consoleLine(const int font, const char* const text) { printf("%s\n", text); Line* const line = malloc(sizeof(Line)); line->font = font; line->text = a_str_dup(text); a_list_addLast(lines, line); if(a_list_size(lines) > CONSOLE_LINES) { free(a_list_pop(lines)); } gui_draw(NULL); a_screen_show(); }