Commit 33e05eb6 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

opengl32: Fix empty glyph handling.

parent 310a3b1d
...@@ -1121,11 +1121,15 @@ static BOOL wglUseFontBitmaps_common( HDC hdc, DWORD first, DWORD count, DWORD l ...@@ -1121,11 +1121,15 @@ static BOOL wglUseFontBitmaps_common( HDC hdc, DWORD first, DWORD count, DWORD l
bitmap = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); bitmap = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
gl_bitmap = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); gl_bitmap = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
} }
if (unicode) if (needed_size != 0) {
ret = (GetGlyphOutlineW(hdc, glyph, GGO_BITMAP, &gm, size, bitmap, &identity) != GDI_ERROR); if (unicode)
else ret = (GetGlyphOutlineW(hdc, glyph, GGO_BITMAP, &gm,
ret = (GetGlyphOutlineA(hdc, glyph, GGO_BITMAP, &gm, size, bitmap, &identity) != GDI_ERROR); size, bitmap, &identity) != GDI_ERROR);
if (!ret) break; else
ret = (GetGlyphOutlineA(hdc, glyph, GGO_BITMAP, &gm,
size, bitmap, &identity) != GDI_ERROR);
if (!ret) break;
}
if (TRACE_ON(wgl)) { if (TRACE_ON(wgl)) {
unsigned int bitmask; unsigned int bitmask;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment