Skip to content

Commit

Permalink
Correct white=transparent bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodmer committed Dec 15, 2020
1 parent 1b54ce8 commit 63dc212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extensions/Sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 63dc212

Please sign in to comment.