Module: wine Branch: master Commit: ba660a47ce3c64412f44172c58b466e345d3fec3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ba660a47ce3c64412f44172c58...
Author: Dmitry Timoshkov dmitry@codeweavers.com Date: Tue Feb 3 17:54:56 2009 +0800
wineps.drv: The MAT2 parameter of GetGlyphOutline is mandatory.
---
dlls/wineps.drv/type1.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wineps.drv/type1.c b/dlls/wineps.drv/type1.c index fe8c8ba..f82fc08 100644 --- a/dlls/wineps.drv/type1.c +++ b/dlls/wineps.drv/type1.c @@ -192,7 +192,7 @@ BOOL T1_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index, TTPOLYCURVE *ppc; LOGFONTW lf; RECT rc; - + static const MAT2 identity = { {0,1},{0,0},{0,0},{0,1} }; static const char glyph_def_begin[] = "/%s findfont dup\n" "/Private get begin\n" @@ -226,11 +226,11 @@ BOOL T1_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index, unscaled_font = CreateFontIndirectW(&lf); old_font = SelectObject(physDev->hdc, unscaled_font); len = GetGlyphOutlineW(physDev->hdc, index, GGO_GLYPH_INDEX | GGO_BEZIER, - &gm, 0, NULL, NULL); + &gm, 0, NULL, &identity); if(len == GDI_ERROR) return FALSE; glyph_buf = HeapAlloc(GetProcessHeap(), 0, len); GetGlyphOutlineW(physDev->hdc, index, GGO_GLYPH_INDEX | GGO_BEZIER, - &gm, len, glyph_buf, NULL); + &gm, len, glyph_buf, &identity);
SelectObject(physDev->hdc, old_font); DeleteObject(unscaled_font);