Seperated chart from box; fixed kkr segfault.

This commit is contained in:
2025-10-18 19:21:22 +02:00
parent c7f218da30
commit 65a1c9f159
8 changed files with 80 additions and 43 deletions

9
main.c
View File

@@ -16,7 +16,9 @@
int
main(void)
{
struct box *ui, *top, *bottom, *left, *right, *buy, *sell, *scam, *title, *desc;
struct box *ui, *top, *bottom, *left, *right, *buy, *sell, *scam,
*title, *desc;
struct chart chart;
ui_init();
@@ -27,7 +29,8 @@ main(void)
append_box(top, title);
append_box(top, desc);
left = new_chart_box();
chart = new_chart(400);
left = new_chart_box(&chart);
left->fills = 5;
buy = new_button_box("buy");
@@ -51,7 +54,7 @@ main(void)
append_box(ui, top);
append_box(ui, bottom);
draw_box(ui, 0, 0, ui_width()-1, ui_height()-1);
draw_box(ui, 0, 0, ui_width(), ui_height());
ui_refresh();