mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-20 21:29:48 +00:00
_cx hack
This commit is contained in:
parent
860e53a8f7
commit
7eddcc15ff
@ -42,6 +42,7 @@ void TFTDisplay::begin(unsigned bg, unsigned fg, orientation_t orient) {
|
||||
_dx = espi.width();
|
||||
_dy = espi.height();
|
||||
_cy = espi.fontHeight();
|
||||
_cx = 6; // FIXME
|
||||
#endif
|
||||
|
||||
setColor(fg);
|
||||
@ -86,6 +87,9 @@ void TFTDisplay::drawString(const char *s, unsigned x, unsigned y) {
|
||||
#if defined(USE_UTFT)
|
||||
utft.print(s, x, y);
|
||||
#elif defined(USE_ESPI)
|
||||
espi.setTextDatum(TL_DATUM);
|
||||
unsigned w = espi.textWidth(s);
|
||||
espi.fillRect(x, y, w, _cy, _bg);
|
||||
espi.drawString(s, x, y);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user