From: Ramakrishnan Muthukrishnan Date: Wed, 30 Nov 2022 17:20:53 +0000 (+0530) Subject: vfo display: step off by one, turn it to green X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/$top_link?a=commitdiff_plain;h=67bbd24c1af2960714a37fe99bb460258c77b569;p=pihpsdr.git vfo display: step off by one, turn it to green --- 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",