Skip to content

Commit

Permalink
manual implementation of #282
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed May 17, 2020
1 parent 156f8d4 commit d2b4b25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Adafruit_GFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1364,8 +1364,9 @@ void Adafruit_GFX::setFont(const GFXfont *f) {
@param maxy Maximum clipping value for Y
*/
/**************************************************************************/
void Adafruit_GFX::charBounds(char c, int16_t *x, int16_t *y, int16_t *minx,
int16_t *miny, int16_t *maxx, int16_t *maxy) {
void Adafruit_GFX::charBounds(unsigned char c, int16_t *x, int16_t *y,
int16_t *minx, int16_t *miny, int16_t *maxx,
int16_t *maxy) {

if (gfxFont) {

Expand Down
4 changes: 2 additions & 2 deletions Adafruit_GFX.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ class Adafruit_GFX : public Print {
int16_t getCursorY(void) const { return cursor_y; };

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

0 comments on commit d2b4b25

Please sign in to comment.