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
b2e4e69f
Commit
b2e4e69f
authored
Jan 27, 2018
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Issue #81
parent
6c993f8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
TFT_eSPI.cpp
TFT_eSPI.cpp
+3
-3
TFT_eSPI.h
TFT_eSPI.h
+2
-2
No files found.
TFT_eSPI.cpp
View file @
b2e4e69f
...
...
@@ -3306,7 +3306,7 @@ void TFT_eSPI::drawFastHLine(int32_t x, int32_t y, int32_t w, uint32_t color)
** Description: draw a filled rectangle
***************************************************************************************/
#if defined (ESP8266) && !defined (RPI_WRITE_STROBE)
void TFT_eSPI::fillRect(int32_t x, int32_t y,
uint32_t w, u
int32_t h, uint32_t color)
void
TFT_eSPI
::
fillRect
(
int32_t
x
,
int32_t
y
,
int32_t
w
,
int32_t
h
,
uint32_t
color
)
{
// rudimentary clipping (drawChar w/big text requires this)
if
((
x
>
_width
)
||
(
y
>
_height
)
||
(
w
<
1
)
||
(
h
<
1
))
return
;
...
...
@@ -3325,7 +3325,7 @@ void TFT_eSPI::fillRect(int32_t x, int32_t y, uint32_t w, uint32_t h, uint32_t c
#else
void TFT_eSPI::fillRect(int32_t x, int32_t y,
uint32_t w, u
int32_t h, uint32_t color)
void
TFT_eSPI
::
fillRect
(
int32_t
x
,
int32_t
y
,
int32_t
w
,
int32_t
h
,
uint32_t
color
)
{
// rudimentary clipping (drawChar w/big text requires this)
if
((
x
>
_width
)
||
(
y
>
_height
)
||
(
w
<
1
)
||
(
h
<
1
))
return
;
...
...
@@ -5566,7 +5566,7 @@ void TFT_eSprite::drawFastHLine(int32_t x, int32_t y, int32_t w, uint32_t color)
** Function name: fillRect
** Description: draw a filled rectangle
*************************************************************************************x*/
void TFT_eSprite::fillRect(int32_t x, int32_t y,
uint32_t w, u
int32_t h, uint32_t color)
void
TFT_eSprite
::
fillRect
(
int32_t
x
,
int32_t
y
,
int32_t
w
,
int32_t
h
,
uint32_t
color
)
{
if
(
!
_created
)
return
;
...
...
TFT_eSPI.h
View file @
b2e4e69f
...
...
@@ -334,7 +334,7 @@ class TFT_eSPI : public Print {
drawLine
(
int32_t
x0
,
int32_t
y0
,
int32_t
x1
,
int32_t
y1
,
uint32_t
color
),
drawFastVLine
(
int32_t
x
,
int32_t
y
,
int32_t
h
,
uint32_t
color
),
drawFastHLine
(
int32_t
x
,
int32_t
y
,
int32_t
w
,
uint32_t
color
),
fillRect
(
int32_t
x
,
int32_t
y
,
uint32_t
w
,
u
int32_t
h
,
uint32_t
color
);
fillRect
(
int32_t
x
,
int32_t
y
,
int32_t
w
,
int32_t
h
,
uint32_t
color
);
virtual
int16_t
drawChar
(
unsigned
int
uniCode
,
int
x
,
int
y
,
int
font
),
drawChar
(
unsigned
int
uniCode
,
int
x
,
int
y
);
...
...
@@ -617,7 +617,7 @@ class TFT_eSprite : public TFT_eSPI {
drawFastVLine
(
int32_t
x
,
int32_t
y
,
int32_t
h
,
uint32_t
color
),
drawFastHLine
(
int32_t
x
,
int32_t
y
,
int32_t
w
,
uint32_t
color
),
fillRect
(
int32_t
x
,
int32_t
y
,
uint32_t
w
,
u
int32_t
h
,
uint32_t
color
),
fillRect
(
int32_t
x
,
int32_t
y
,
int32_t
w
,
int32_t
h
,
uint32_t
color
),
// Set the sprite text cursor position for print class (does not change the TFT screen cursor)
setCursor
(
int16_t
x
,
int16_t
y
);
...
...
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