From: Ramakrishnan Muthukrishnan Date: Tue, 14 Nov 2023 17:09:21 +0000 (+0530) Subject: a few more font size magic numbers X-Git-Url: https://git.rkrishnan.org/vdrive/%22file:/simplejson/statistics?a=commitdiff_plain;h=4461064e08f0cff17d9ce340ba606c1212b531a7;p=pihpsdr.git a few more font size magic numbers --- diff --git a/screen.h b/screen.h index 6b82cc9..c61c49c 100644 --- 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 5805049..9d9956c 100644 --- 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);