fix(drawSizedText): stop trying to be smart about text clipping (#82)

This commit is contained in:
Raphael Coeffic
2022-11-04 19:14:17 +10:00
committed by GitHub
parent d174463d97
commit a08ccd00aa
-7
View File
@@ -1101,13 +1101,6 @@ coord_t BitmapBuffer::drawSizedText(coord_t x, coord_t y, const char *s,
strncpy(buffer, s, len);
buffer[len] = '\0';
int height = getFontHeight(flags);
if (y + height <= ymin || y >= ymax) {
RESTORE_OFFSET();
return x;
}
coord_t pos = x;
const coord_t orig_pos = pos;