Skip to content

Commit d2b4b25

Browse files
committed
manual implementation of #282
1 parent 156f8d4 commit d2b4b25

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Adafruit_GFX.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,8 +1364,9 @@ void Adafruit_GFX::setFont(const GFXfont *f) {
13641364
@param maxy Maximum clipping value for Y
13651365
*/
13661366
/**************************************************************************/
1367-
void Adafruit_GFX::charBounds(char c, int16_t *x, int16_t *y, int16_t *minx,
1368-
int16_t *miny, int16_t *maxx, int16_t *maxy) {
1367+
void Adafruit_GFX::charBounds(unsigned char c, int16_t *x, int16_t *y,
1368+
int16_t *minx, int16_t *miny, int16_t *maxx,
1369+
int16_t *maxy) {
13691370

13701371
if (gfxFont) {
13711372

Adafruit_GFX.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ class Adafruit_GFX : public Print {
227227
int16_t getCursorY(void) const { return cursor_y; };
228228

229229
protected:
230-
void charBounds(char c, int16_t *x, int16_t *y, int16_t *minx, int16_t *miny,
231-
int16_t *maxx, int16_t *maxy);
230+
void charBounds(unsigned char c, int16_t *x, int16_t *y, int16_t *minx,
231+
int16_t *miny, int16_t *maxx, int16_t *maxy);
232232
int16_t WIDTH; ///< This is the 'raw' display width - never changes
233233
int16_t HEIGHT; ///< This is the 'raw' display height - never changes
234234
int16_t _width; ///< Display width as modified by current rotation

0 commit comments

Comments
 (0)