summaryrefslogtreecommitdiff
path: root/src/fruits/cmc/ui/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fruits/cmc/ui/ui.c')
-rw-r--r--src/fruits/cmc/ui/ui.c8
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;