From d07077d0cfb36f5b3df5a8ab38ac5c8ff32a1d3d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 10 Feb 2025 15:31:49 +0100 Subject: ADD TWEAKS TO KERNEL. Signed-off-by: Amlal El Mahrouss --- dev/Kernel/HALKit/AMD64/HalDebugOutput.cc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'dev/Kernel/HALKit') diff --git a/dev/Kernel/HALKit/AMD64/HalDebugOutput.cc b/dev/Kernel/HALKit/AMD64/HalDebugOutput.cc index d984e087..cb8aef59 100644 --- a/dev/Kernel/HALKit/AMD64/HalDebugOutput.cc +++ b/dev/Kernel/HALKit/AMD64/HalDebugOutput.cc @@ -83,7 +83,8 @@ namespace Kernel len = rt_string_len(bytes, 255); static int x = kFontSizeX, y = kFontSizeY; - auto log_txt = RGB(0xff, 0xff, 0xff); + + static BOOL not_important = NO; while (index < len) { @@ -96,7 +97,19 @@ namespace Kernel tmp_str[0] = bytes[index]; tmp_str[1] = 0; - fb_render_string(tmp_str, y, x, log_txt); + if (bytes[index] == '*') + { + if (not_important) + not_important = NO; + else + not_important = YES; + + ++index; + + continue; + } + + fb_render_string(tmp_str, y, x, not_important ? RGB(0xff, 0xff, 0xff) : RGB(0x00, 0x00, 0xff)); if (bytes[index] == '\r') { -- cgit v1.2.3