diff --git a/src/backend/x11.c b/src/backend/x11.c index 7cae9e1..1cb06f8 100644 --- a/src/backend/x11.c +++ b/src/backend/x11.c @@ -489,8 +489,6 @@ static void MwLLBeginDrawImpl(MwLL handle) { static void MwLLEndDrawImpl(MwLL handle) { (void)handle; - - XClearWindow(handle->x11.display, handle->x11.window); } static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count, MwLLColor color) { diff --git a/src/text/ft2.c b/src/text/ft2.c index fef3f05..37bed4e 100644 --- a/src/text/ft2.c +++ b/src/text/ft2.c @@ -59,7 +59,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 + cx + (ttf->face->glyph->metrics.horiBearingX >> 6) + ttf->face->glyph->bitmap_left; + int ox = x + 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; @@ -123,7 +123,6 @@ static int ft2_MwTextWidth(MwFLFont ttf, const char* text) { text = old_text; } - tw -= ttf->face->glyph->advance.x >> 6; tw += ttf->face->glyph->bitmap_left + ttf->face->glyph->bitmap.width; return tw + 1;