diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-12 18:20:45 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-12 18:20:45 +0200 |
| commit | 11016b0c2094cbc9918ab613dcf73aeaff9e6768 (patch) | |
| tree | 9abf2b75109052e242b3f0b2ea48b86345c79e8b /interface.c | |
| parent | 39bd41ad4d4832d4022a99e3cfcc49409f8b2da6 (diff) | |
| download | ttdaw-11016b0c2094cbc9918ab613dcf73aeaff9e6768.tar.gz | |
Added some interface changes
Diffstat (limited to 'interface.c')
| -rw-r--r-- | interface.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/interface.c b/interface.c index 1347ce2..867bd1e 100644 --- a/interface.c +++ b/interface.c | |||
| @@ -56,7 +56,7 @@ void *interface(void *arg) { | |||
| 56 | if (ret) { | 56 | if (ret) { |
| 57 | fprintf(stderr, "tb_init() failed with error code %d\n", ret); | 57 | fprintf(stderr, "tb_init() failed with error code %d\n", ret); |
| 58 | exit(1); | 58 | exit(1); |
| 59 | } | 59 | |
| 60 | 60 | ||
| 61 | tb_set_input_mode(TB_INPUT_ESC | TB_INPUT_MOUSE); | 61 | tb_set_input_mode(TB_INPUT_ESC | TB_INPUT_MOUSE); |
| 62 | struct tb_event ev; | 62 | struct tb_event ev; |
| @@ -64,9 +64,12 @@ void *interface(void *arg) { | |||
| 64 | tb_clear(); | 64 | tb_clear(); |
| 65 | tb_present(); | 65 | tb_present(); |
| 66 | 66 | ||
| 67 | tb_set_cursor(0, tb_height()-1); | ||
| 68 | tb_hide_cursor(); | ||
| 69 | |||
| 67 | // Show currently selected soundfont. | 70 | // Show currently selected soundfont. |
| 68 | tb_printf(0, 0, TB_GREEN, 0, "Soundfont: %s", args->soundfont_file); | 71 | tb_printf(0, 0, TB_GREEN, 0, "Soundfont: %s", args->soundfont_file); |
| 69 | tb_printf(0, 1, TB_GREEN, 0, "Preset: %s", args->soundfont_preset); | 72 | tb_printf(0, 1, TB_GREEN, 0, "Preset: %d", args->soundfont_preset); |
| 70 | tb_present(); | 73 | tb_present(); |
| 71 | 74 | ||
| 72 | // Draw interface. | 75 | // Draw interface. |
