From 2cd11d018923271871fe2346c79783bf3d9f281f Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 27 Apr 2026 03:40:09 +0900 Subject: [PATCH] stuff --- src/text/ft2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text/ft2.c b/src/text/ft2.c index 3634656..90a0de8 100644 --- a/src/text/ft2.c +++ b/src/text/ft2.c @@ -66,7 +66,7 @@ static int ft2_MwDrawText(MwWidget handle, MwFLFont ttf, MwPoint* point, const c for(cy = 0; cy < bmp->rows; cy++) { for(cx = 0; cx < bmp->width; cx++) { - int ox = x + (ttf->face->glyph->metrics.horiBearingX / 64) + cx + ttf->face->glyph->bitmap_left; + int ox = x + (ttf->face->glyph->metrics.horiBearingX >> 6) + cx + ttf->face->glyph->bitmap_left; int oy = y + (ttf->face->height * ttf->px / ttf->face->units_per_EM) - ttf->face->glyph->bitmap_top + cy + (ttf->face->descender * ttf->px / ttf->face->units_per_EM); unsigned char* opx = &px[(oy * tw + ox) * 4]; opx[0] = color->common.red;