Merge f64a24e0ef into 8c83eb84bd
This commit is contained in:
commit
6f17dc68ec
|
|
@ -254,6 +254,11 @@ void TFT_eSprite::createPalette(uint16_t colorMap[], uint8_t colors)
|
|||
***************************************************************************************/
|
||||
void TFT_eSprite::createPalette(const uint16_t colorMap[], uint8_t colors)
|
||||
{
|
||||
if (_colorMap != nullptr)
|
||||
{
|
||||
free(_colorMap);
|
||||
}
|
||||
|
||||
if (colorMap == nullptr)
|
||||
{
|
||||
// Create a color map using the default FLASH map
|
||||
|
|
|
|||
Loading…
Reference in New Issue