Module: wine Branch: master Commit: 0941fefbc0d81fb9af48a1f2b4d3164792a981dd URL: http://source.winehq.org/git/wine.git/?a=commit;h=0941fefbc0d81fb9af48a1f2b4...
Author: Huw Davies huw@codeweavers.com Date: Mon Oct 1 10:47:17 2012 +0100
gdi32: Correctly map the 256-level bitmap to the 5, 17 and 65-level bitmaps.
---
dlls/gdi32/freetype.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index f609758..20186fa 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; } }