From 602a876fd1956967a69f2df2ddada48fff6844a3 Mon Sep 17 00:00:00 2001 From: Karina Date: Sun, 21 Dec 2025 13:43:59 +0400 Subject: [PATCH] fix: mirrored letter --- kernel/src/modules/shitgui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/modules/shitgui.c b/kernel/src/modules/shitgui.c index a783b7e..d428a1c 100644 --- a/kernel/src/modules/shitgui.c +++ b/kernel/src/modules/shitgui.c @@ -60,7 +60,7 @@ void sg_draw_char_bitmap(SG_Context *ctx, SG_Point *p, char c, u32 color, SG_Fon u8 bitmap_row = font->base[(unsigned char)c * font->h + y]; volatile u32 *row_ptr = &ctx->fb[(start_y + y) * ctx->pitch + start_x]; for (u32 x = 0; x < draw_w; x++) { - if (bitmap_row & (1 << (font->w - 1 - x))) { + if (bitmap_row & (1 << x)) { row_ptr[x] = color; } }