From 68366b07165202255279aa9c0c800083b22361ed Mon Sep 17 00:00:00 2001 From: gilesp1729 Date: Sat, 20 Jul 2024 18:15:13 +1000 Subject: [PATCH] Make charBounds virtual, so getTextBounds can use an override. --- Adafruit_GFX.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adafruit_GFX.h b/Adafruit_GFX.h index 63c6ab6..564c5b6 100644 --- a/Adafruit_GFX.h +++ b/Adafruit_GFX.h @@ -230,7 +230,7 @@ public: 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