forked from Bodmer/TFT_eSPI
Fixes for hiroschima font
This commit is contained in:
+1
-1
@@ -5041,7 +5041,7 @@ int16_t TFT_eSPI::drawString(std::string_view string, int32_t poX, int32_t poY,
|
||||
if (padX && !_fillbg) _fillbg = true;
|
||||
|
||||
while (n < len) {
|
||||
uint16_t uniCode = decodeUTF8((uint8_t*)ptr, &n, len - n);
|
||||
uint16_t uniCode = decodeUTF8((const uint8_t*)std::begin(string), &n, len - n);
|
||||
drawGlyph(uniCode);
|
||||
}
|
||||
_fillbg = fillbg; // restore state
|
||||
|
||||
Reference in New Issue
Block a user