PaulStoffregen / ILI9341_t3

Optimized ILI9341 TFT Library
http://pjrc.com/store/display_ili9341.html
242 stars 95 forks source link

Fix incorrect fillRectHGradient delta calculation #38

Open mudaltsov opened 7 years ago

mudaltsov commented 7 years ago

The delta for horizontal gradient should divide by width, not height.

Trivial test case: tft.fillRectHGradient(0, 0, 200, 30, ILI9341_BLACK, ILI9341_WHITE);