mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTGDI][FREETYPE] Return non-zero gm.gmBlackBoxX/Y (#2643)
In return of GetGlyphOutline function call, gm.gmBlackBoxX and gm.gmBlackBoxY must be non-zero to avoid Division by Zero. At epilogue of ftGdiGetGlyphOutline, we adjust the values. CORE-15949
This commit is contained in:
parent
5ce61092b5
commit
52fb8c1a8d
1 changed files with 6 additions and 0 deletions
|
@ -4203,6 +4203,12 @@ ftGdiGetGlyphOutline(
|
|||
}
|
||||
|
||||
DPRINT("ftGdiGetGlyphOutline END and needed %lu\n", needed);
|
||||
|
||||
if (gm.gmBlackBoxX == 0)
|
||||
gm.gmBlackBoxX = 1;
|
||||
if (gm.gmBlackBoxY == 0)
|
||||
gm.gmBlackBoxY = 1;
|
||||
|
||||
*pgm = gm;
|
||||
return needed;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue