Seperated chart from box; fixed kkr segfault.
This commit is contained in:
9
main.c
9
main.c
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user