diff options
author | dzwdz | 2022-08-08 20:18:56 +0200 |
---|---|---|
committer | dzwdz | 2022-08-08 20:18:56 +0200 |
commit | cb04eada02bedc5b748e01b09a899dc139c4970f (patch) | |
tree | 41b679ec42e1d2aa6c4350e4534030419cc33cf6 /src/user/app/vterm/font.c | |
parent | 06415b58cdba12cd6a1a5b06f567d11d584364cc (diff) |
user/lib: shared libdraw for framebuffer handling
Diffstat (limited to 'src/user/app/vterm/font.c')
-rw-r--r-- | src/user/app/vterm/font.c | 3 |
1 files changed, 2 insertions, 1 deletions
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++) { |