From 11b10ecad70e6fbc921f470fe4648e8b7db8512b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 11 Apr 2025 18:05:33 +0200 Subject: TextGfx.h: make use of StrLen when bootz. Signed-off-by: Amlal El Mahrouss --- dev/modules/CoreGfx/TextGfx.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dev/modules') diff --git a/dev/modules/CoreGfx/TextGfx.h b/dev/modules/CoreGfx/TextGfx.h index cbe62022..09d9dad3 100644 --- a/dev/modules/CoreGfx/TextGfx.h +++ b/dev/modules/CoreGfx/TextGfx.h @@ -170,8 +170,12 @@ inline Kernel::Void fb_render_string_for_bitmap(const Kernel::UInt8* bitmap, con inline Kernel::Void fb_render_string(const Kernel::Char* text, Kernel::Int32 x_dst, Kernel::Int32 y_dst, Kernel::Int32 color) { +#ifndef __BOOTZ__ auto len = Kernel::rt_string_len(text); - +#else + auto len = StrLen(text); +#endif + for (Kernel::SizeT i = 0; i < len; ++i) { fb_render_string_for_bitmap(&kFontBitmap[(Kernel::UInt8)text[i]][0], kFontSizeX, kFontSizeY, x_dst, y_dst, color); -- cgit v1.2.3