From d315a82dbed1fd288702ebbcb869c744476433a8 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 27 Jun 2024 18:59:49 +0200 Subject: stuff --- userland/terminal/term.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'userland/terminal/term.c') diff --git a/userland/terminal/term.c b/userland/terminal/term.c index ced3a60..246474f 100644 --- a/userland/terminal/term.c +++ b/userland/terminal/term.c @@ -228,12 +228,15 @@ void handle_escape_codes_or_print(char *buffer, int len) { } void terminal_resize(uint32_t sx, uint32_t sy) { - GUI_Resize(global_w, sx, sy); + assert(GUI_BufferResize(global_w, sx, sy)); for (int y = 0; y < sy; y += 8) { - for (int x = 0; x < sx; x += 8) { + int x = 0; + for (; x < sx; x += 8) { GUI_DrawFont(global_w, x, y, terminal_char_buffer[y / 8][x / 8]); } + GUI_DrawLine(global_w, x, y, sx, y, 0xFF00FF); } + assert(GUI_SendResize(global_w, sx, sy)); } void run() { -- cgit v1.2.3