gdi32: Correctly handle space char on Path_ExtTextOut().
This commit is contained in:
parent
97e81bc3bd
commit
23acdb7143
|
@ -1460,8 +1460,11 @@ BOOL PATH_ExtTextOut(DC *dc, INT x, INT y, UINT flags, const RECT *lprc,
|
|||
void *outline;
|
||||
|
||||
dwSize = GetGlyphOutlineW(hdc, str[idx], GGO_GLYPH_INDEX | GGO_NATIVE, &gm, 0, NULL, &identity);
|
||||
if (!dwSize) return FALSE;
|
||||
if (dwSize == GDI_ERROR) return FALSE;
|
||||
|
||||
/* add outline only if char is printable */
|
||||
if(dwSize)
|
||||
{
|
||||
outline = HeapAlloc(GetProcessHeap(), 0, dwSize);
|
||||
if (!outline) return FALSE;
|
||||
|
||||
|
@ -1470,6 +1473,7 @@ BOOL PATH_ExtTextOut(DC *dc, INT x, INT y, UINT flags, const RECT *lprc,
|
|||
PATH_add_outline(dc, org.x + x + xoff, org.x + y + yoff, outline, dwSize);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, outline);
|
||||
}
|
||||
|
||||
if (dx)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue