Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.54k stars 1.02k forks source link

drawRoundRect/fillRoundRect radius issue #2997

Closed karlheinz2000 closed 7 months ago

karlheinz2000 commented 7 months ago

I tried to update old project with new lib. Unfortunately drawRoundRect and/or fillRoundRect behaves different then before. Radius seems to be not same. I assume problem is fillRoundRect . Code is simple. Just print round, filled rect and add a frame. I can see it everywhere.

tft.fillRoundRect(5, 20, 310, 35, 15, TFT_WHITE);          
tft.drawRoundRect(5, 20, 310, 35, 15, TFT_BLACK);    

Lib until 2.3.61 is fine. All later versions have this issue.

Arduino, STM32, ILI9341

Screenshot_20231122-201235 Screenshot_20231122-201301

Bodmer commented 7 months ago

Thanks for reporting this, it is now fixed in the Github master.