altos/draw: Use fewer fonts in lco sample
authorKeith Packard <keithp@keithp.com>
Mon, 27 Feb 2023 02:55:54 +0000 (18:55 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 27 Feb 2023 02:55:54 +0000 (18:55 -0800)
Saves some memory

Signed-off-by: Keith Packard <keithp@keithp.com>
src/draw/lco-test.c

index 02d2b5decf0a4f926efad3ed0ccf5c9096da2f96..93a13009f8c843d89b6f435f155668742c64606e 100644 (file)
@@ -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)
 #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,