mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 375506 - Fix for bug 372629 breaks Mingw - build error in gfxWindowsFonts.cpp, r=roc
This commit is contained in:
parent
1bc747f685
commit
ee8e8c3b6d
@ -677,7 +677,7 @@ SetupTextRunFromGlyphs(gfxTextRun *aRun, WCHAR *aGlyphs, HDC aDC,
|
||||
if (!partialWidthArray.AppendElements(length))
|
||||
return PR_FALSE;
|
||||
BOOL success = GetTextExtentExPointI(aDC,
|
||||
aGlyphs,
|
||||
(WORD*) aGlyphs,
|
||||
length,
|
||||
INT_MAX,
|
||||
NULL,
|
||||
@ -725,7 +725,7 @@ gfxWindowsFontGroup::InitTextRunGDI(gfxContext *aContext, gfxTextRun *aRun,
|
||||
if (!glyphArray.AppendElements(aLength))
|
||||
return;
|
||||
|
||||
DWORD ret = GetGlyphIndicesA(dc, aString, aLength, glyphArray.Elements(),
|
||||
DWORD ret = GetGlyphIndicesA(dc, aString, aLength, (WORD*) glyphArray.Elements(),
|
||||
GGI_MARK_NONEXISTING_GLYPHS);
|
||||
if (ret != GDI_ERROR &&
|
||||
SetupTextRunFromGlyphs(aRun, glyphArray.Elements(), dc, font))
|
||||
@ -749,7 +749,7 @@ gfxWindowsFontGroup::InitTextRunGDI(gfxContext *aContext, gfxTextRun *aRun,
|
||||
if (!glyphArray.AppendElements(aLength))
|
||||
return;
|
||||
|
||||
DWORD ret = GetGlyphIndicesW(dc, aString, aLength, glyphArray.Elements(),
|
||||
DWORD ret = GetGlyphIndicesW(dc, aString, aLength, (WORD*) glyphArray.Elements(),
|
||||
GGI_MARK_NONEXISTING_GLYPHS);
|
||||
if (ret != GDI_ERROR &&
|
||||
SetupTextRunFromGlyphs(aRun, glyphArray.Elements(), dc, font))
|
||||
|
Loading…
Reference in New Issue
Block a user