BitstreamVeraSans-Roman-24.c \
BitstreamVeraSans-Roman-10.c \
BitstreamVeraSans-Roman-12.c \
- BenguiatGothicStd-Bold-26.c \
+ BenguiatGothicStd-Bold-24.c \
ao_quadrature.c \
ao_button.c \
ao_event.c \
BitstreamVeraSans-Roman-24.c: ao_font.h
BitstreamVeraSans-Roman-10.c: ao_font.h
BitstreamVeraSans-Roman-12.c: ao_font.h
-BenguiatGothicStd-Bold-26.c: ao_font.h
+BenguiatGothicStd-Bold-24.c: ao_font.h
install:
};
static const struct ao_transform logo_transform = {
- .x_scale = 48, .x_off = 2,
- .y_scale = 48, .y_off = 0,
+ .x_scale = 40, .x_off = 8,
+ .y_scale = 40, .y_off = 0,
};
static const struct ao_transform show_transform = {
#define VOLT_FONT BitstreamVeraSans_Roman_58_font
#define SMALL_FONT BitstreamVeraSans_Roman_12_font
#define TINY_FONT BitstreamVeraSans_Roman_10_font
-#define LOGO_FONT BenguiatGothicStd_Bold_26_font
+#define LOGO_FONT BenguiatGothicStd_Bold_24_font
#define LABEL_Y (int16_t) (SMALL_FONT.ascent)
#define VALUE_Y (int16_t) (LABEL_Y + 5 + BIG_FONT.ascent)
#define SCAN_X (WIDTH - 100) / 2
#define SCAN_Y 50
#define SCAN_HEIGHT 3
+#define SCANNING_X (WIDTH / 2)
+#define SCANNING_Y (SCAN_Y - 2)
#define FOUND_Y 63
#define FOUND_X 3
#define FOUND_WIDTH (WIDTH - 6)
{
ao_rect(&fb, 0, 0, WIDTH, HEIGHT, AO_WHITE, AO_COPY);
ao_logo(&fb, &logo_transform, &LOGO_FONT, AO_BLACK, AO_COPY);
+ _ao_center_text(SCANNING_X, SCANNING_Y, &TINY_FONT, "Scanning...");
found_width = 0;
nfound = 0;
}