From 2ae433bd20bb68b787c3dd92f635f6c820dcfcb9 Mon Sep 17 00:00:00 2001 From: hachem Date: Fri, 9 Oct 2026 20:13:44 +0200 Subject: fix: rework how paths work --- kernel/console.rv | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'kernel') diff --git a/kernel/console.rv b/kernel/console.rv index ba322f9..4a036ab 100644 --- a/kernel/console.rv +++ b/kernel/console.rv @@ -258,7 +258,10 @@ global console = { fn cursor_clear(self) do if self.shown do - fill_rect(self.cursor_x * self:cell_width(), self.cursor_y * self:cell_height(), self:cell_width(), self:cell_height(), BG_COLOR) + const cw = self:cell_width() + const ch = self:cell_height() + const thick = 2 * self.scale + fill_rect(self.cursor_x * cw, self.cursor_y * ch + (ch - thick), cw, thick, BG_COLOR) self.shown = :false end end, @@ -266,7 +269,10 @@ global console = { fn cursor_show(self) do self.cursor_x = self.column self.cursor_y = self.row - fill_rect(self.cursor_x * self:cell_width(), self.cursor_y * self:cell_height(), self:cell_width(), self:cell_height(), CURSOR_COLOR) + const cw = self:cell_width() + const ch = self:cell_height() + const thick = 2 * self.scale + fill_rect(self.cursor_x * cw, self.cursor_y * ch + (ch - thick), cw, thick, CURSOR_COLOR) self.shown = :true end, -- cgit v1.3