summaryrefslogtreecommitdiffhomepage
path: root/dev/modules
diff options
context:
space:
mode:
Diffstat (limited to 'dev/modules')
-rw-r--r--dev/modules/CoreGfx/CoreAccess.h2
-rw-r--r--dev/modules/CoreGfx/TextGfx.h6
2 files changed, 6 insertions, 2 deletions
diff --git a/dev/modules/CoreGfx/CoreAccess.h b/dev/modules/CoreGfx/CoreAccess.h
index 39ff6da3..c60505c5 100644
--- a/dev/modules/CoreGfx/CoreAccess.h
+++ b/dev/modules/CoreGfx/CoreAccess.h
@@ -24,7 +24,7 @@ namespace FB
~FBAccessibilty() = default;
public:
- NE_COPY_DELETE(FBAccessibilty);
+ NE_COPY_DELETE(FBAccessibilty)
static UInt64 Width() noexcept
{
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);