projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/draw: Use fewer fonts in lco sample
[fw/altos]
/
src
/
draw
/
lco-test.c
diff --git
a/src/draw/lco-test.c
b/src/draw/lco-test.c
index 02d2b5decf0a4f926efad3ed0ccf5c9096da2f96..93a13009f8c843d89b6f435f155668742c64606e 100644
(file)
--- 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 BIG_FONT FrutigerLT_Roman_64_font
#define VOLT_FONT FrutigerLT_Roman_64_font
#define SMALL_FONT NotoMono_12_font
-#define TINY_FONT NotoMono_1
0
_font
+#define TINY_FONT NotoMono_1
2
_font
#define LOGO_FONT BenguiatGothicStd_Bold_26_font
#define LABEL_Y (int16_t) (SMALL_FONT.ascent)
#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 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;
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,
};
.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,
static const struct ao_transform bowtie_transform = {
.x_scale = 1, .x_off = 50,
.y_scale = 1, .y_off = 20,