mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-07 14:44:43 +02:00
Fix bug in 16 bit transparent Sprite
This commit is contained in:
@@ -614,6 +614,7 @@ void TFT_eSPI::pushSprite(int32_t x, int32_t y, uint32_t w, uint32_t h, uint16_t
|
|||||||
|
|
||||||
int32_t xe = x + dw - 1, ye = y + dh - 1;
|
int32_t xe = x + dw - 1, ye = y + dh - 1;
|
||||||
|
|
||||||
|
transp = transp >> 8 | transp << 8;
|
||||||
while (dh--)
|
while (dh--)
|
||||||
{
|
{
|
||||||
int32_t len = dw;
|
int32_t len = dw;
|
||||||
@@ -626,7 +627,7 @@ void TFT_eSPI::pushSprite(int32_t x, int32_t y, uint32_t w, uint32_t h, uint16_t
|
|||||||
if (transp != *ptr)
|
if (transp != *ptr)
|
||||||
{
|
{
|
||||||
if (move) { move = false; setAddrWindow(px, y, xe, ye); }
|
if (move) { move = false; setAddrWindow(px, y, xe, ye); }
|
||||||
SPI.write16(*ptr>>8 | *ptr <<8);
|
SPI.write16(*ptr>>8 | *ptr<<8);
|
||||||
}
|
}
|
||||||
else move = true;
|
else move = true;
|
||||||
px++;
|
px++;
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "TFT_eSPI",
|
"name": "TFT_eSPI",
|
||||||
"version": "0.17.16",
|
"version": "0.17.17",
|
||||||
"keywords": "TFT, ESP8266, NodeMCU, ESP32, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486",
|
"keywords": "TFT, ESP8266, NodeMCU, ESP32, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486",
|
||||||
"description": "A TFT SPI graphics library for ESP8266",
|
"description": "A TFT SPI graphics library for ESP8266",
|
||||||
"repository":
|
"repository":
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
name=TFT_eSPI
|
name=TFT_eSPI
|
||||||
version=0.17.16
|
version=0.17.17
|
||||||
author=Bodmer
|
author=Bodmer
|
||||||
maintainer=Bodmer
|
maintainer=Bodmer
|
||||||
sentence=A fast TFT library for ESP8266 processors and the Arduino IDE
|
sentence=A fast TFT library for ESP8266 processors and the Arduino IDE
|
||||||
|
Reference in New Issue
Block a user