From ec077209becf9ad8429f6cdf98fa06831263c813 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 26 Feb 2023 18:55:54 -0800 Subject: [PATCH] altos/draw: Use fewer fonts in lco sample Saves some memory Signed-off-by: Keith Packard --- src/draw/lco-test.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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, -- 2.30.2