adafruit / Adafruit_CircuitPython_RGB_Display

Drivers for RGB displays for Adafruit CircuitPython.
MIT License
129 stars 52 forks source link

Code is using deprecated getsize() function #120

Open aabaker opened 6 months ago

aabaker commented 6 months ago

The line https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display/blob/7ecfffe3deac982f8698e72da7033b836c07ecd5/examples/rgb_display_minipitftstats.py#L90 plus a few just below it use the deprecated function getsize() which has been removed in the latest release of Pillow. Using getbbox() instead and then using [3] instead of [1] seems like a reasonable workaround