From 0941fefbc0d81fb9af48a1f2b4d3164792a981dd Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 1 Oct 2012 10:47:17 +0100 Subject: [PATCH] gdi32: Correctly map the 256-level bitmap to the 5, 17 and 65-level bitmaps. --- dlls/gdi32/freetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index f6097581c57..20186fa9472 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -6023,7 +6023,7 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format, for (row = 0, start = buf; row < height; row++) { for (col = 0, ptr = start; col < width; col++, ptr++) - *ptr = (((int)*ptr) * max_level + 128) / 256; + *ptr = (((int)*ptr) * (max_level + 1)) / 256; start += pitch; } }