diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-31 23:33:25 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-08-31 23:33:25 +0330 |
commit | bcde4724cdaa8becd27160d8e8733919ed726366 (patch) | |
tree | afbce2f02ec19c6e80d183c794a4a45d607ae499 /src/main.c | |
parent | 108a4a0c2c14d70c366bbfaa65b7287824fb33da (diff) |
some formatting and renaming
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,9 +12,9 @@ void on_button_click(const MOUSE_ACTION *mouse_action) { WIDGET *ui_build(TUI *tui) { if (is_clicked) { - char frame[20+3+1]; + char frame[20+4+1]; const uint64_t fps = 1000000000/tui->last_frame; - sprintf(frame, "%ldfps", fps); + sprintf(frame, "%ldfps\n", fps); return tui_make_box( -1, -1, tui_make_column(tui_make_widget_array( @@ -25,7 +25,7 @@ WIDGET *ui_build(TUI *tui) { 20, 3, tui_make_column(tui_make_widget_array( tui_make_text(frame, COLOR_BLUE), - tui_make_button(tui_make_text(" Back", COLOR_RED), + tui_make_button(tui_make_text("Back", COLOR_RED), on_button_click))), COLOR_WHITE))))), COLOR_MAGENTA); |