mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-07 06:34:44 +02:00
Fix #539
This commit is contained in:
@@ -443,7 +443,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len){
|
||||
void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
|
||||
if ( (color >> 8) == (color & 0x00FF) )
|
||||
{ if (!len) return;
|
||||
tft_Write_16(color); WR_L; WR_H;
|
||||
tft_Write_16(color);
|
||||
while (--len) {WR_L; WR_H; WR_L; WR_H;}
|
||||
}
|
||||
else while (len--) {tft_Write_16(color);}
|
||||
|
Reference in New Issue
Block a user