diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-10 15:31:49 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-10 15:31:49 +0100 |
| commit | d07077d0cfb36f5b3df5a8ab38ac5c8ff32a1d3d (patch) | |
| tree | caac00a4825ce10110d618f056c1a29043503b20 /dev/Kernel/HALKit/AMD64/HalDebugOutput.cc | |
| parent | a79800fbb7a8c28b116df226b5e1032dd93365fd (diff) | |
ADD TWEAKS TO KERNEL.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/HALKit/AMD64/HalDebugOutput.cc')
| -rw-r--r-- | dev/Kernel/HALKit/AMD64/HalDebugOutput.cc | 17 |
1 files changed, 15 insertions, 2 deletions
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') { |
