]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
a few more font size magic numbers
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 14 Nov 2023 17:09:21 +0000 (22:39 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 14 Nov 2023 17:09:21 +0000 (22:39 +0530)
screen.h
vfo.c

index 6b82cc9df14c8ca7def743d99ea2dc71a3650499..c61c49c2ca646787956ad8b9505b4370e277d972 100644 (file)
--- a/screen.h
+++ b/screen.h
@@ -60,7 +60,8 @@
 #define  XIT_RENDER_FONT_SIZE       (16)
 #define  NB_RENDER_FONT_SIZE        (16)
 #define  NR_RENDER_FONT_SIZE        (16)
-
+#define  DUP_RENDER_FONT_SIZE       (16)
+#define  SPLIT_RENDER_FONT_SIZE     (16)
 // coordinates
 
 #define  MODE_X     70
diff --git a/vfo.c b/vfo.c
index 5805049c4768aa455b0c672a026c5e3b5278ed33..9d9956c025c6ede81dca042cb526a27ecdf94816 100644 (file)
--- a/vfo.c
+++ b/vfo.c
@@ -1316,7 +1316,7 @@ void vfo_update(void) {
         } else {
             cairo_set_source_rgb(cr, GREY_R, GREY_G, GREY_B);
         }
-        cairo_set_font_size(cr, 16);
+        cairo_set_font_size(cr, SPLIT_RENDER_FONT_SIZE);
         cairo_show_text(cr, "SPLIT");
 
         cairo_move_to(cr, CTUN_X, CTUN_Y);
@@ -1345,7 +1345,7 @@ void vfo_update(void) {
         }
         sprintf(temp_text, "DUP");
         cairo_move_to(cr, DUP_X, DUP_Y);
-        cairo_set_font_size(cr, 16);
+        cairo_set_font_size(cr, DUP_RENDER_FONT_SIZE);
         cairo_show_text(cr, temp_text);
 
         cairo_destroy(cr);