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

diff --git a/vfo.c b/vfo.c
index eda0a46d5f63bd5605eeddde31e98fa89fdac574..68a60c0327c28d0c0bb8bdb8dbc13d7263d201a9 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:
@@ -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.