From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sun, 20 Nov 2022 13:31:41 +0000 (+0530)
Subject: vfo fix a bug in rendering the dot vs step size
X-Git-Url: https://git.rkrishnan.org/vdrive/%22file://%22%3C?a=commitdiff_plain;h=fa151b8d06c39fda9937dcb2e35b56ebcd056501;p=pihpsdr.git

vfo fix a bug in rendering the dot vs step size
---

diff --git a/vfo.c b/vfo.c
index 47d3bec..bda80a4 100644
--- a/vfo.c
+++ b/vfo.c
@@ -1040,11 +1040,13 @@ void vfo_update() {
         cairo_show_text(cr, vfo_texts[0]);
         // show the step digit and the rest in grey
         // cairo_set_font_size(cr, 50);
-        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, 1.0, 1.0, 1.0); // 0.75, 0.75);
         cairo_show_text(cr, vfo_texts[1]);
-	cairo_set_source_rgb(cr, 0.75, 1.0, 1.0); // 0.75, 0.75);
+        if (strlen(vfo_texts[2]) != 0) {
+            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_show_text(cr, vfo_texts[2]);
 
         cairo_select_font_face(cr, "Cantarell",