diff options
| author | 2026-08-26 17:58:15 -0400 | |
|---|---|---|
| committer | 2026-08-26 17:58:15 -0400 | |
| commit | b112da5b9825262b3b779bd699a4cf4bca8b6d01 (patch) | |
| tree | 7742d66d3aac6bc007c638377f81da738e9886be /src/fruits/cmc/ui/ui.c | |
| parent | 197d41a3e23cab35848f623c6133baccc62aacbe (diff) | |
| download | camu-b112da5b9825262b3b779bd699a4cf4bca8b6d01.tar.gz camu-b112da5b9825262b3b779bd699a4cf4bca8b6d01.tar.bz2 camu-b112da5b9825262b3b779bd699a4cf4bca8b6d01.zip | |
Rough cmc UI tweaking
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/fruits/cmc/ui/ui.c')
| -rw-r--r-- | src/fruits/cmc/ui/ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fruits/cmc/ui/ui.c b/src/fruits/cmc/ui/ui.c index b51ec53..55441e9 100644 --- a/src/fruits/cmc/ui/ui.c +++ b/src/fruits/cmc/ui/ui.c @@ -176,9 +176,9 @@ static bool relayout(struct cmc_ui *ui, struct ncplane *stdplane) if (ui->n) ncplane_destroy(ui->n); struct ncplane_options nopts = { 0 }; nopts.x = 1; - nopts.y = 1; + nopts.y = 0; nopts.margin_r = 2; - nopts.margin_b = 1; + nopts.margin_b = 0; nopts.flags = NCPLANE_OPTION_MARGINALIZED; ui->n = ncplane_create(stdplane, &nopts); @@ -223,7 +223,7 @@ static s32 log_callback(void *userdata, u8 level, char *message) { struct cmc_ui *ui = (struct cmc_ui *)userdata; (void)level; - cmc_log_pane_push_message(&ui->log, message); + cmc_log_pane_push_message(&ui->log, strdup(message)); return al_strnlen(message, AL_LOG_MESSAGE_SIZE); } @@ -263,7 +263,7 @@ bool cmc_ui_init(struct cmc_ui *ui, struct nn_event_loop *loop, struct cmc *c) nn_poll_start(&ui->input_poll, ui->loop); nn_timer_init(&ui->render_timer, ui->loop, render_timer_callback, ui); - nn_timer_set_repeat(&ui->render_timer, NNWT_TS_FROM_USEC(200000)); + nn_timer_set_repeat(&ui->render_timer, NNWT_TS_FROM_USEC(40000)); nn_timer_again(&ui->render_timer); return true; |