mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-02 12:14:40 +02:00
Merge branch 'master' of https://github.com/Bodmer/TFT_eSPI
This commit is contained in:
@@ -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];
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
#include "soc/spi_reg.h"
|
#include "soc/spi_reg.h"
|
||||||
#include "driver/spi_master.h"
|
#include "driver/spi_master.h"
|
||||||
|
|
||||||
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32C2) && !defined(CONFIG_IDF_TARGET_ESP32)
|
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32)
|
||||||
#define CONFIG_IDF_TARGET_ESP32
|
#define CONFIG_IDF_TARGET_ESP32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user