[NTGDI][FREETYPE] Formatting code; Follow up #4865 (a620c6f)

CORE-11848
This commit is contained in:
Katayama Hirofumi MZ 2022-11-24 12:28:10 +09:00
parent 911153da10
commit 476f94c0fe

View file

@ -5992,7 +5992,7 @@ IntExtTextOutW(
FT_Vector delta; FT_Vector delta;
/* Check if String is valid */ /* Check if String is valid */
if ((Count > 0xFFFF) || (Count > 0 && String == NULL)) if (Count > 0xFFFF || (Count > 0 && String == NULL))
{ {
EngSetLastError(ERROR_INVALID_PARAMETER); EngSetLastError(ERROR_INVALID_PARAMETER);
return FALSE; return FALSE;
@ -6000,15 +6000,12 @@ IntExtTextOutW(
if (PATH_IsPathOpen(dc->dclevel)) if (PATH_IsPathOpen(dc->dclevel))
{ {
bResult = PATH_ExtTextOut(dc, return PATH_ExtTextOut(dc,
XStart, XStart, YStart,
YStart,
fuOptions, fuOptions,
(const RECTL *)lprc, lprc,
String, String, Count,
Count, Dx);
(const INT *)Dx);
return bResult;
} }
DC_vPrepareDCsForBlit(dc, NULL, NULL, NULL); DC_vPrepareDCsForBlit(dc, NULL, NULL, NULL);
@ -6030,7 +6027,9 @@ IntExtTextOutW(
{ {
Start.x = pdcattr->ptlCurrent.x; Start.x = pdcattr->ptlCurrent.x;
Start.y = pdcattr->ptlCurrent.y; Start.y = pdcattr->ptlCurrent.y;
} else { }
else
{
Start.x = XStart; Start.x = XStart;
Start.y = YStart; Start.y = YStart;
} }
@ -6069,8 +6068,7 @@ IntExtTextOutW(
if (dc->dctype == DCTYPE_DIRECT) if (dc->dctype == DCTYPE_DIRECT)
MouseSafetyOnDrawStart(dc->ppdev, DestRect.left, DestRect.top, DestRect.right, DestRect.bottom); MouseSafetyOnDrawStart(dc->ppdev, DestRect.left, DestRect.top, DestRect.right, DestRect.bottom);
IntEngBitBlt( IntEngBitBlt(SurfObj,
SurfObj,
NULL, NULL,
NULL, NULL,
(CLIPOBJ *)&dc->co, (CLIPOBJ *)&dc->co,
@ -6289,6 +6287,7 @@ IntExtTextOutW(
FT_Done_Glyph((FT_Glyph)realglyph); FT_Done_Glyph((FT_Glyph)realglyph);
break; break;
} }
SourceGlyphSurf = EngLockSurface((HSURF)HSourceGlyph); SourceGlyphSurf = EngLockSurface((HSURF)HSourceGlyph);
if (!SourceGlyphSurf) if (!SourceGlyphSurf)
{ {
@ -6324,8 +6323,7 @@ IntExtTextOutW(
if (dc->dctype == DCTYPE_DIRECT) if (dc->dctype == DCTYPE_DIRECT)
MouseSafetyOnDrawStart(dc->ppdev, DestRect.left, DestRect.top, DestRect.right, DestRect.bottom); MouseSafetyOnDrawStart(dc->ppdev, DestRect.left, DestRect.top, DestRect.right, DestRect.bottom);
if (!IntEngMaskBlt( if (!IntEngMaskBlt(SurfObj,
SurfObj,
SourceGlyphSurf, SourceGlyphSurf,
(CLIPOBJ *)&dc->co, (CLIPOBJ *)&dc->co,
&exloRGB2Dst.xlo, &exloRGB2Dst.xlo,