Force font functions not to be inlined to save some space

This commit is contained in:
Gordon Williams 2020-05-12 11:36:39 +01:00
parent 4a391cbbe2
commit 4070a6acb1
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ const unsigned short LCD_FONT_4X6[] IN_FLASH_MEMORY = { // from 33 up to 133
PACK_5_TO_16( _XX , ___ , ___ , ___ , ___ )
};
void graphicsDrawChar4x6(JsGraphics *gfx, int x1, int y1, char ch, unsigned short size, bool solidBackground) {
NO_INLINE void graphicsDrawChar4x6(JsGraphics *gfx, int x1, int y1, char ch, unsigned short size, bool solidBackground) {
int idx = ((unsigned char)ch) - 33;
if (idx<0 || idx>=LCD_FONT_4X6_CHARS) {
// no char for this

View File

@ -402,7 +402,7 @@ const uint32_t LCD_FONT_6X8[] IN_FLASH_MEMORY = { // from 33 up...
};
void graphicsDrawChar6x8(JsGraphics *gfx, int x1, int y1, char ch, unsigned short size, bool solidBackground) {
NO_INLINE void graphicsDrawChar6x8(JsGraphics *gfx, int x1, int y1, char ch, unsigned short size, bool solidBackground) {
int idx = ((unsigned char)ch) - 33;
if (idx<0 || idx>=LCD_FONT_6X8_CHARS) {
// no char for this