]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
show cw wpm in smaller typeface
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 12 Feb 2022 12:30:22 +0000 (18:00 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 12 Feb 2022 12:30:22 +0000 (18:00 +0530)
vfo.c

diff --git a/vfo.c b/vfo.c
index eda0a46d5f63bd5605eeddde31e98fa89fdac574..b5c868e10760eac4bb7a7c479874441bdbafe621 100644 (file)
--- 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.