From cb04eada02bedc5b748e01b09a899dc139c4970f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 8 Aug 2022 20:18:56 +0200 Subject: user/lib: shared libdraw for framebuffer handling --- src/user/app/vterm/font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/user/app/vterm/font.c') diff --git a/src/user/app/vterm/font.c b/src/user/app/vterm/font.c index 368d534..e4f124f 100644 --- a/src/user/app/vterm/font.c +++ b/src/user/app/vterm/font.c @@ -53,7 +53,8 @@ void font_blit(uint32_t glyph, int x, int y) { return; } - dirty_mark(x, y); + dirty_mark(&dirty, x * font.w, y * font.h); + dirty_mark(&dirty, (x+1) * font.w - 1, (y+1) * font.h - 1); char *bitmap = font_data + font.glyph_size * glyph; for (size_t i = 0; i < font.w; i++) { -- cgit v1.2.3