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
94d7dfc6
Commit
94d7dfc6
authored
Feb 15, 2023
by
Bodmer
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #2408
parent
a7eb9e82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
TFT_eSPI.cpp
TFT_eSPI.cpp
+5
-5
No files found.
TFT_eSPI.cpp
View file @
94d7dfc6
...
@@ -3166,14 +3166,15 @@ void TFT_eSPI::drawChar(int32_t x, int32_t y, uint16_t c, uint32_t color, uint32
...
@@ -3166,14 +3166,15 @@ void TFT_eSPI::drawChar(int32_t x, int32_t y, uint16_t c, uint32_t color, uint32
{
{
if
(
_vpOoB
)
return
;
if
(
_vpOoB
)
return
;
if
(
c
<
32
)
return
;
#ifdef LOAD_GLCD
#ifdef LOAD_GLCD
//>>>>>>>>>>>>>>>>>>
//>>>>>>>>>>>>>>>>>>
#ifdef LOAD_GFXFF
#ifdef LOAD_GFXFF
if
(
!
gfxFont
)
{
// 'Classic' built-in font
if
(
!
gfxFont
)
{
// 'Classic' built-in
GLCD
font
#endif
#endif
//>>>>>>>>>>>>>>>>>>
//>>>>>>>>>>>>>>>>>>
if
(
c
>
255
)
return
;
int32_t
xd
=
x
+
_xDatum
;
int32_t
xd
=
x
+
_xDatum
;
int32_t
yd
=
y
+
_yDatum
;
int32_t
yd
=
y
+
_yDatum
;
...
@@ -5021,7 +5022,6 @@ size_t TFT_eSPI::write(uint8_t utf8)
...
@@ -5021,7 +5022,6 @@ size_t TFT_eSPI::write(uint8_t utf8)
#endif
#endif
if
(
uniCode
==
'\n'
)
uniCode
+=
22
;
// Make it a valid space character to stop errors
if
(
uniCode
==
'\n'
)
uniCode
+=
22
;
// Make it a valid space character to stop errors
else
if
(
uniCode
<
32
)
return
1
;
uint16_t
cwidth
=
0
;
uint16_t
cwidth
=
0
;
uint16_t
cheight
=
0
;
uint16_t
cheight
=
0
;
...
@@ -5040,7 +5040,7 @@ size_t TFT_eSPI::write(uint8_t utf8)
...
@@ -5040,7 +5040,7 @@ size_t TFT_eSPI::write(uint8_t utf8)
#ifdef LOAD_FONT2
#ifdef LOAD_FONT2
if
(
textfont
==
2
)
{
if
(
textfont
==
2
)
{
if
(
uniCode
>
127
)
return
1
;
if
(
uniCode
<
32
||
uniCode
>
127
)
return
1
;
cwidth
=
pgm_read_byte
(
widtbl_f16
+
uniCode
-
32
);
cwidth
=
pgm_read_byte
(
widtbl_f16
+
uniCode
-
32
);
cheight
=
chr_hgt_f16
;
cheight
=
chr_hgt_f16
;
...
@@ -5056,7 +5056,7 @@ size_t TFT_eSPI::write(uint8_t utf8)
...
@@ -5056,7 +5056,7 @@ size_t TFT_eSPI::write(uint8_t utf8)
#ifdef LOAD_RLE
#ifdef LOAD_RLE
{
{
if
((
textfont
>
2
)
&&
(
textfont
<
9
))
{
if
((
textfont
>
2
)
&&
(
textfont
<
9
))
{
if
(
uniCode
>
127
)
return
1
;
if
(
uniCode
<
32
||
uniCode
>
127
)
return
1
;
// Uses the fontinfo struct array to avoid lots of 'if' or 'switch' statements
// Uses the fontinfo struct array to avoid lots of 'if' or 'switch' statements
cwidth
=
pgm_read_byte
(
(
uint8_t
*
)
pgm_read_dword
(
&
(
fontdata
[
textfont
].
widthtbl
)
)
+
uniCode
-
32
);
cwidth
=
pgm_read_byte
(
(
uint8_t
*
)
pgm_read_dword
(
&
(
fontdata
[
textfont
].
widthtbl
)
)
+
uniCode
-
32
);
cheight
=
pgm_read_byte
(
&
fontdata
[
textfont
].
height
);
cheight
=
pgm_read_byte
(
&
fontdata
[
textfont
].
height
);
...
...
xpstem
@xpstem
mentioned in commit
cdf81eca
·
Feb 14, 2024
mentioned in commit
cdf81eca
mentioned in commit cdf81ecab144134694a9f9beb1b05bca42c1eda5
Toggle commit list
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