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
bdcbca43
Commit
bdcbca43
authored
Apr 23, 2018
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ePaper 1bpp width bug
parent
235887d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Extensions/Sprite.cpp
Extensions/Sprite.cpp
+4
-3
No files found.
Extensions/Sprite.cpp
View file @
bdcbca43
...
...
@@ -49,7 +49,7 @@ void* TFT_eSprite::createSprite(int16_t w, int16_t h, uint8_t frames)
if
(
w
<
1
||
h
<
1
)
return
NULL
;
_iwidth
=
_dwidth
=
w
;
_iwidth
=
_dwidth
=
_bitwidth
=
w
;
_iheight
=
_dheight
=
h
;
this
->
cursor_x
=
0
;
...
...
@@ -703,7 +703,7 @@ int16_t TFT_eSprite::width(void)
if
(
_rotation
==
1
||
_rotation
==
3
)
return
_dheight
;
return
_
d
width
;
return
_
bit
width
;
}
...
...
@@ -1568,6 +1568,7 @@ void TFT_eSprite::printToSprite(String string)
char
cbuffer
[
len
+
1
];
// Add 1 for the null
string
.
toCharArray
(
cbuffer
,
len
+
1
);
// Add 1 for the null, otherwise characters get dropped
printToSprite
(
cbuffer
,
len
);
//printToSprite((char*)string.c_str(), string.length());
}
...
...
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