Skip to content

Commit

Permalink
Make charBounds virtual, so getTextBounds can use an override.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesp1729 committed Jul 20, 2024
1 parent 8176400 commit 68366b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adafruit_GFX.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class Adafruit_GFX : public Print {
int16_t getCursorY(void) const { return cursor_y; };

protected:
void charBounds(unsigned char c, int16_t *x, int16_t *y, int16_t *minx,
virtual 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
Expand Down

0 comments on commit 68366b0

Please sign in to comment.