gdi32: Correctly map the 256-level bitmap to the 5, 17 and 65-level bitmaps.

This commit is contained in:
Huw Davies 2012-10-01 10:47:17 +01:00 committed by Alexandre Julliard
parent 82282db65e
commit 0941fefbc0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}