Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TFT_eSPI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
TFT_eSPI
Commits
731228d1
Commit
731228d1
authored
Aug 28, 2020
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deleteSprite
Fixes #736 and also delete color map even if the sprite has not been created.
parent
1c66d306
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
Extensions/Sprite.cpp
Extensions/Sprite.cpp
+8
-8
TFT_eSPI.h
TFT_eSPI.h
+1
-1
library.json
library.json
+1
-1
library.properties
library.properties
+1
-1
No files found.
Extensions/Sprite.cpp
View file @
731228d1
...
@@ -125,7 +125,7 @@ void* TFT_eSprite::getPointer(void)
...
@@ -125,7 +125,7 @@ void* TFT_eSprite::getPointer(void)
/***************************************************************************************
/***************************************************************************************
** Function name: created
** Function name: created
** Description: Returns true i
s
sprite has been created
** Description: Returns true i
f
sprite has been created
***************************************************************************************/
***************************************************************************************/
bool
TFT_eSprite
::
created
(
void
)
bool
TFT_eSprite
::
created
(
void
)
{
{
...
@@ -376,18 +376,18 @@ uint16_t TFT_eSprite::getPaletteColor(uint8_t index)
...
@@ -376,18 +376,18 @@ uint16_t TFT_eSprite::getPaletteColor(uint8_t index)
***************************************************************************************/
***************************************************************************************/
void
TFT_eSprite
::
deleteSprite
(
void
)
void
TFT_eSprite
::
deleteSprite
(
void
)
{
{
if
(
!
_created
)
return
;
if
(
_colorMap
!=
nullptr
)
if
(
_colorMap
!=
nullptr
)
{
{
free
(
_colorMap
);
free
(
_colorMap
);
_colorMap
=
nullptr
;
}
}
if
(
_created
)
{
free
(
_img8_1
);
free
(
_img8_1
);
_img8
=
nullptr
;
_img8
=
nullptr
;
_created
=
false
;
_created
=
false
;
}
}
}
...
...
TFT_eSPI.h
View file @
731228d1
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#ifndef _TFT_eSPIH_
#ifndef _TFT_eSPIH_
#define _TFT_eSPIH_
#define _TFT_eSPIH_
#define TFT_ESPI_VERSION "2.2.1
8
"
#define TFT_ESPI_VERSION "2.2.1
9
"
/***************************************************************************************
/***************************************************************************************
** Section 1: Load required header files
** Section 1: Load required header files
...
...
library.json
View file @
731228d1
{
{
"name"
:
"TFT_eSPI"
,
"name"
:
"TFT_eSPI"
,
"version"
:
"2.2.1
8
"
,
"version"
:
"2.2.1
9
"
,
"keywords"
:
"Arduino, tft, ePaper, display, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789, RM68140"
,
"keywords"
:
"Arduino, tft, ePaper, display, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789, RM68140"
,
"description"
:
"A TFT and ePaper SPI graphics library with optimisation for ESP8266, ESP32 and STM32"
,
"description"
:
"A TFT and ePaper SPI graphics library with optimisation for ESP8266, ESP32 and STM32"
,
"repository"
:
"repository"
:
...
...
library.properties
View file @
731228d1
name
=
TFT_eSPI
name
=
TFT_eSPI
version
=
2.2.1
8
version
=
2.2.1
9
author
=
Bodmer
author
=
Bodmer
maintainer
=
Bodmer
maintainer
=
Bodmer
sentence
=
TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32
sentence
=
TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment