Correct white=transparent bug

This commit is contained in:
Bodmer
2020-12-15 16:50:12 +00:00
committed by GitHub
parent 1b54ce87e9
commit 63dc212061

View File

@@ -485,7 +485,7 @@ bool TFT_eSprite::pushRotated(TFT_eSprite *spr, int16_t angle, int32_t transp)
int32_t yt = min_y - spr->_yPivot;
uint32_t xe = _dwidth << FP_SCALE;
uint32_t ye = _dheight << FP_SCALE;
uint16_t tpcolor = transp>>8 | transp<<8; // convert to unsigned swapped bytes
uint32_t tpcolor = transp>>8 | transp<<8; // convert to unsigned swapped bytes
bool oldSwapBytes = spr->getSwapBytes();
spr->setSwapBytes(false);