Skip to content

Commit

Permalink
Update Adafruit_GFX_AS.cpp
Browse files Browse the repository at this point in the history
Fixed a bug in drawCentreString for the case when Font7 loading is disabled
  • Loading branch information
Sermus committed Mar 12, 2018
1 parent de40326 commit 8890d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/Adafruit_GFX_AS.cpp
Expand Up @@ -580,8 +580,8 @@ ICACHE_FLASH_ATTR int Adafruit_GFX_AS::drawCentreString(const char *string, uint
#endif
#ifdef LOAD_FONT7
if (size==7) len += *(widtbl_f7s+ascii-32)+2;
*pointer++;
#endif
*pointer++;
}

int poX = dX - len/2;
Expand Down

0 comments on commit 8890d40

Please sign in to comment.