mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Force font functions not to be inlined to save some space
This commit is contained in:
parent
4a391cbbe2
commit
4070a6acb1
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user