diff options
author | Anton Kling <anton@kling.gg> | 2024-06-27 18:59:49 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-27 19:07:50 +0200 |
commit | d315a82dbed1fd288702ebbcb869c744476433a8 (patch) | |
tree | b58ec3831daa0abf0dd2dd5dd4395e53565bd1c7 /userland/terminal | |
parent | 556d1e44fef369a7200cc045f337ac3db2f9eab5 (diff) |
stuff
Diffstat (limited to 'userland/terminal')
-rw-r--r-- | userland/terminal/term.c | 7 |
1 files changed, 5 insertions, 2 deletions
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() { |