From 67bbd24c1af2960714a37fe99bb460258c77b569 Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan Date: Wed, 30 Nov 2022 22:50:53 +0530 Subject: [PATCH] vfo display: step off by one, turn it to green --- vfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vfo.c b/vfo.c index 9fa09ef..d31356d 100644 --- a/vfo.c +++ b/vfo.c @@ -948,8 +948,8 @@ char **draw_vfo_val_fixed(char *vfo_str, int step) { int l_temp = strlen(temp); if (step < l_temp) { - strncpy(s2, temp, l_temp - step); - strncpy(s3, &temp[l_temp - step], step); + strncpy(s2, temp, l_temp - step - 1); + strncpy(s3, &temp[l_temp - step - 1], step+1); } else { strncpy(s2, temp, l_temp); } @@ -1086,7 +1086,7 @@ void vfo_update() { /* cairo_set_source_rgb(cr, 0.0, 1.0, 1.0); // 0.75, 0.75, 0.75); */ /* cairo_show_text(cr, "."); */ /* } */ - cairo_set_source_rgb(cr, 0.75, 1.0, 1.0); // 0.75, 0.75); + cairo_set_source_rgb(cr, 0.0, 1.0, 0.0); // 0.75, 0.75); cairo_show_text(cr, vfo_texts[2]); cairo_select_font_face(cr, "Cantarell", -- 2.45.2