From: Keith Packard Date: Mon, 27 Feb 2023 02:55:54 +0000 (-0800) Subject: altos/draw: Use fewer fonts in lco sample X-Git-Tag: 1.9.16~1^2~25 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=ec077209becf9ad8429f6cdf98fa06831263c813 altos/draw: Use fewer fonts in lco sample Saves some memory Signed-off-by: Keith Packard --- diff --git a/src/draw/lco-test.c b/src/draw/lco-test.c index 02d2b5de..93a13009 100644 --- a/src/draw/lco-test.c +++ b/src/draw/lco-test.c @@ -24,7 +24,7 @@ #define BIG_FONT FrutigerLT_Roman_64_font #define VOLT_FONT FrutigerLT_Roman_64_font #define SMALL_FONT NotoMono_12_font -#define TINY_FONT NotoMono_10_font +#define TINY_FONT NotoMono_12_font #define LOGO_FONT BenguiatGothicStd_Bold_26_font #define LABEL_Y (int16_t) (SMALL_FONT.ascent) @@ -36,6 +36,12 @@ #define RSSI_LABEL_X 15 #define PAD_LABEL_X 95 #define SEP_X (PAD_X - 10) +#define SCAN_X (WIDTH - 100) / 2 +#define SCAN_Y 49 +#define SCAN_HEIGHT 4 +#define FOUND_Y 64 +#define FOUND_WIDTH 18 +#define MAX_VALID (WIDTH / FOUND_WIDTH) static int box_number = 1; static int pad_number = 1; @@ -80,13 +86,6 @@ static const struct ao_transform logo_transform = { .y_scale = 48, .y_off = 0, }; -#define SCAN_X (WIDTH - 100) / 2 -#define SCAN_Y 51 -#define SCAN_HEIGHT 4 -#define FOUND_Y 64 -#define FOUND_WIDTH 14 -#define MAX_VALID (WIDTH / FOUND_WIDTH) - static const struct ao_transform bowtie_transform = { .x_scale = 1, .x_off = 50, .y_scale = 1, .y_off = 20,