Skip to content

Commit

Permalink
Update GUIslice_drv_tft_espi.cpp
Browse files Browse the repository at this point in the history
Fix pvFontLast const void
  • Loading branch information
ImpulseAdventure authored Aug 1, 2021
1 parent 0929180 commit c3b4627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GUIslice_drv_tft_espi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ bool gslc_DrvDrawTxtAlign(gslc_tsGui* pGui,int16_t nX0,int16_t nY0,int16_t nX1,i
if (pFont->eFontRefType == GSLC_FONTREF_FNAME){
if (pFont->pvFont != pDriver->pvFontLast) {
m_disp.loadFont((const char*)pFont->pvFont);
pDriver->pvFontLast = pFont->pvFont;
pDriver->pvFontLast = (void*)pFont->pvFont;
}
} else {
m_disp.setFreeFont((const GFXfont *)pFont->pvFont);
Expand Down Expand Up @@ -486,7 +486,7 @@ bool gslc_DrvDrawTxt(gslc_tsGui* pGui,int16_t nTxtX,int16_t nTxtY,gslc_tsFont* p
if (pFont->eFontRefType == GSLC_FONTREF_FNAME){
if (pFont->pvFont != pDriver->pvFontLast) {
m_disp.loadFont((const char*)pFont->pvFont);
pDriver->pvFontLast = pFont->pvFont;
pDriver->pvFontLast = (void*)pFont->pvFont;
}
m_disp.setTextColor(nColRaw,nColBgRaw);
} else {
Expand Down

0 comments on commit c3b4627

Please sign in to comment.