From: Ramakrishnan Muthukrishnan Date: Sat, 12 Feb 2022 12:30:22 +0000 (+0530) Subject: show cw wpm in smaller typeface X-Git-Url: https://git.rkrishnan.org/Site/Content/simplejson/status?a=commitdiff_plain;h=ecce7a2c8d6ace3abb325f188a1d0ced65845160;p=pihpsdr.git show cw wpm in smaller typeface --- 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.