File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments