gdi32: Correctly map the 256-level bitmap to the 5, 17 and 65-level bitmaps.
This commit is contained in:
parent
82282db65e
commit
0941fefbc0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue