X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/9e04bf6c52ed702ff98f18fc7d5508bc5f453767..43d5996dfe4424a1025d1657e3e37c96f59bd005:/drivers/displays/tft/aafonts.h diff --git a/drivers/displays/tft/aafonts.h b/drivers/displays/tft/aafonts.h index 7d0ec34..e09f246 100644 --- a/drivers/displays/tft/aafonts.h +++ b/drivers/displays/tft/aafonts.h @@ -70,6 +70,7 @@ extern const uint16_t COLORTABLE_AA4_WHITEONBLACK[16]; extern const uint16_t COLORTABLE_AA4_BLACKONWHITE[16]; void aafontsDrawString ( uint16_t x, uint16_t y, const uint16_t * colorTable, const aafontsFont_t *font, char *str ); +void aafontsCenterString ( uint16_t x, uint16_t y, const uint16_t * colorTable, const aafontsFont_t *font, char *str ); uint16_t aafontsGetStringWidth ( const aafontsFont_t *font, char *str ); void aafontsCalculateColorTable ( uint16_t bgColor, uint16_t foreColor, uint16_t *colorTable, size_t tableSize );