Use byteloader for printable char ranges

This commit is contained in:
Kovid Goyal
2023-11-14 07:15:09 +05:30
parent 93430cd5f4
commit 2dffad1d8e
3 changed files with 16 additions and 17 deletions

View File

@@ -277,7 +277,8 @@ dispatch_normal_mode_byte(PS *self, uint8_t ch) {
static void
dispatch_printable_ascii(PS *self, const size_t sz) {
REPORT_DRAW_ASCII(self->buf + self->read.pos, sz);
screen_draw_printable_ascii(self->screen, self->buf + self->read.pos, sz);
ByteLoader b; byte_loader_init(&b, self->buf + self->read.pos, sz);
screen_draw_printable_ascii(self->screen, &b);
self->read.pos += sz;
}