gdi32: Don't overrun the current scanline while copying a glyph's bitmap.
This commit is contained in:
parent
7c8b8e0a93
commit
a643337c26
|
@ -4384,7 +4384,12 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
|
||||||
INT x;
|
INT x;
|
||||||
while(h--) {
|
while(h--) {
|
||||||
for(x = 0; x < pitch; x++)
|
for(x = 0; x < pitch; x++)
|
||||||
|
{
|
||||||
|
if(x < ft_face->glyph->bitmap.width)
|
||||||
dst[x] = (src[x / 8] & (1 << ( (7 - (x % 8))))) ? 0xff : 0;
|
dst[x] = (src[x / 8] & (1 << ( (7 - (x % 8))))) ? 0xff : 0;
|
||||||
|
else
|
||||||
|
dst[x] = 0;
|
||||||
|
}
|
||||||
src += ft_face->glyph->bitmap.pitch;
|
src += ft_face->glyph->bitmap.pitch;
|
||||||
dst += pitch;
|
dst += pitch;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue