From 132255b1f4fc742e69ceb5987c74c43e960c35fc Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sat, 12 Feb 2022 17:48:25 +0530
Subject: [PATCH] show CW wpm in smaller typeface

---
 vfo.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/vfo.c b/vfo.c
index eda0a46..68a60c0 100644
--- a/vfo.c
+++ b/vfo.c
@@ -967,7 +967,7 @@ void vfo_update() {
             break;
           case modeCWL:
           case modeCWU:
-            sprintf(temp_text,"%s %s %d wpm",mode_string[vfo[id].mode],band_filter->title,cw_keyer_speed);
+            sprintf(temp_text,"%s %s %d ",mode_string[vfo[id].mode],band_filter->title,cw_keyer_speed);
             break;
           case modeLSB:
           case modeUSB:
@@ -984,6 +984,17 @@ void vfo_update() {
         cairo_set_source_rgb(cr, 1.0, 1.0, 0.0);
         cairo_move_to(cr, 70, 80);
         cairo_show_text(cr, temp_text);
+        switch (vfo[id].mode) {
+        case modeCWL:
+        case modeCWU:
+            cairo_set_font_size(cr, 18);
+            cairo_set_source_rgb(cr, 1.0, 1.0, 0.0);
+            // cairo_move_to(cr, 70, 80);
+            cairo_show_text(cr, "wpm");
+            break;
+        default:
+            break;
+        }
 
 	// In what follows, we want to display the VFO frequency
 	// on which we currently transmit a signal with red colour.
-- 
2.45.2