Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodmer committed Mar 22, 2022
1 parent c92c82b commit 810aa98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extensions/Sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ bool TFT_eSprite::pushRotated(int16_t angle, uint32_t transp)
int32_t yt = min_y - _tft->_yPivot;
uint32_t xe = _dwidth << FP_SCALE;
uint32_t ye = _dheight << FP_SCALE;
uint32_t tpcolor = transp;
uint16_t tpcolor = (uint16_t)transp;

if (transp != 0x00FFFFFF) {
if (_bpp == 4) tpcolor = _colorMap[transp & 0x0F];
Expand Down Expand Up @@ -479,7 +479,7 @@ bool TFT_eSprite::pushRotated(TFT_eSprite *spr, int16_t angle, uint32_t transp)
int32_t yt = min_y - spr->_yPivot;
uint32_t xe = _dwidth << FP_SCALE;
uint32_t ye = _dheight << FP_SCALE;
uint32_t tpcolor = transp;
uint16_t tpcolor = (uint16_t)transp;

if (transp != 0x00FFFFFF) {
if (_bpp == 4) tpcolor = _colorMap[transp & 0x0F];
Expand Down

0 comments on commit 810aa98

Please sign in to comment.