From ecce7a2c8d6ace3abb325f188a1d0ced65845160 Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sat, 12 Feb 2022 18:00:22 +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..b5c868e 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:
@@ -985,6 +985,17 @@ void vfo_update() {
         cairo_move_to(cr, 70, 80);
         cairo_show_text(cr, temp_text);
 
+        // draw CW (wpm)
+        switch(vfo[id].mode) {
+        case modeCWU:
+        case modeCWL:
+            cairo_set_font_size(cr, 18);
+            cairo_set_source_rgb(cr, 1.0, 1.0, 0.0);
+            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.
 	// If it is out-of-band, we display "Out of band" in red.
-- 
2.45.2