summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/video/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/drivers/video/font.h')
-rw-r--r--payloads/libpayload/drivers/video/font.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/payloads/libpayload/drivers/video/font.h b/payloads/libpayload/drivers/video/font.h
index a5e0b85c02..9ea328c78d 100644
--- a/payloads/libpayload/drivers/video/font.h
+++ b/payloads/libpayload/drivers/video/font.h
@@ -34,13 +34,14 @@
extern int font_width;
extern int font_height;
+extern int font_scale;
inline int font_glyph_filled(unsigned int ch, int x, int y)
{
unsigned char *glyph = font8x16 + ((ch & 0xFF) * FONT_HEIGHT);
- return glyph[y] & (1 << x);
+ return glyph[y/font_scale] & (1 << x/font_scale);
}
-void font_init(void);
+void font_init(int width);
#endif