Skip to content

Commit 3a416b7

Browse files
committed
Fix bug with non-lgfx core
1 parent 5a5e651 commit 3a416b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UI/UI.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace SDUpdaterNS
4949
//#define fontInto_t basic_fontInfo_t
5050
struct fontInfo_t
5151
{
52-
const uint8_t fontNumber;
52+
const uint8_t font; // font number
5353
const uint8_t fontSize;
5454
};
5555
fontInfo_t Font0Size1 = {0, 1};
@@ -204,7 +204,7 @@ namespace SDUpdaterNS
204204

205205

206206
#else // using TFT_eSPI based core (M5Core2.h, M5Stack.h, M5StickC.h).
207-
#define setFontInfo(x, i) {auto info=(fontInfo_t*)i;x->setTextFont(info->fontNumber);x->setTextSize(info->fontSize);}
207+
#define setFontInfo(x, i) {auto info=(fontInfo_t*)i;x->setTextFont(info->font);x->setTextSize(info->fontSize);}
208208
#define getTextFgColor(x) x->textcolor
209209
#define getTextBgColor(x) x->textbgcolor
210210
#define getTextDatum(x) x->textdatum

0 commit comments

Comments
 (0)