mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2024-09-21 10:27:11 +00:00
Fix #1735
This commit is contained in:
parent
c92c82bed5
commit
810aa98fc0
@ -405,7 +405,7 @@ bool TFT_eSprite::pushRotated(int16_t angle, uint32_t transp)
|
|||||||
int32_t yt = min_y - _tft->_yPivot;
|
int32_t yt = min_y - _tft->_yPivot;
|
||||||
uint32_t xe = _dwidth << FP_SCALE;
|
uint32_t xe = _dwidth << FP_SCALE;
|
||||||
uint32_t ye = _dheight << FP_SCALE;
|
uint32_t ye = _dheight << FP_SCALE;
|
||||||
uint32_t tpcolor = transp;
|
uint16_t tpcolor = (uint16_t)transp;
|
||||||
|
|
||||||
if (transp != 0x00FFFFFF) {
|
if (transp != 0x00FFFFFF) {
|
||||||
if (_bpp == 4) tpcolor = _colorMap[transp & 0x0F];
|
if (_bpp == 4) tpcolor = _colorMap[transp & 0x0F];
|
||||||
@ -479,7 +479,7 @@ bool TFT_eSprite::pushRotated(TFT_eSprite *spr, int16_t angle, uint32_t transp)
|
|||||||
int32_t yt = min_y - spr->_yPivot;
|
int32_t yt = min_y - spr->_yPivot;
|
||||||
uint32_t xe = _dwidth << FP_SCALE;
|
uint32_t xe = _dwidth << FP_SCALE;
|
||||||
uint32_t ye = _dheight << FP_SCALE;
|
uint32_t ye = _dheight << FP_SCALE;
|
||||||
uint32_t tpcolor = transp;
|
uint16_t tpcolor = (uint16_t)transp;
|
||||||
|
|
||||||
if (transp != 0x00FFFFFF) {
|
if (transp != 0x00FFFFFF) {
|
||||||
if (_bpp == 4) tpcolor = _colorMap[transp & 0x0F];
|
if (_bpp == 4) tpcolor = _colorMap[transp & 0x0F];
|
||||||
|
Loading…
Reference in New Issue
Block a user