winex11.drv: Fix empty glyph handling.

This commit is contained in:
Akihiro Sagawa 2013-09-20 00:57:48 +09:00 committed by Alexandre Julliard
parent cc7b39681d
commit 310a3b1d11
1 changed files with 4 additions and 1 deletions

View File

@ -1129,7 +1129,10 @@ static void UploadGlyph(struct xrender_physdev *physDev, UINT glyph, enum glyph_
buf = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, buflen);
GetGlyphOutlineW(physDev->dev.hdc, glyph, ggo_format, &gm, buflen, buf, &identity);
if (buflen)
GetGlyphOutlineW(physDev->dev.hdc, glyph, ggo_format, &gm, buflen, buf, &identity);
else
gm.gmBlackBoxX = gm.gmBlackBoxY = 0; /* empty glyph */
formatEntry->realized[glyph] = TRUE;
TRACE("buflen = %d. Got metrics: %dx%d adv=%d,%d origin=%d,%d\n",