mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 22:43:01 +00:00
[FREETYPE] Bring back our diffs to reduce the stack usage in cf2_interpT2CharString(). CORE-14227
This commit is contained in:
parent
dade22f479
commit
d7c47feb25
1 changed files with 21 additions and 1 deletions
22
sdk/lib/3rdparty/freetype/src/psaux/psintrp.c
vendored
22
sdk/lib/3rdparty/freetype/src/psaux/psintrp.c
vendored
|
@ -525,8 +525,13 @@
|
||||||
CF2_ArrStackRec vStemHintArray;
|
CF2_ArrStackRec vStemHintArray;
|
||||||
|
|
||||||
CF2_HintMaskRec hintMask;
|
CF2_HintMaskRec hintMask;
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
CF2_GlyphPathRec *glyphPath = malloc(sizeof(CF2_GlyphPathRec));
|
||||||
|
/* Ugly but it allows us to reduce the diff */
|
||||||
|
#define glyphPath (*glyphPath)
|
||||||
|
#else
|
||||||
CF2_GlyphPathRec glyphPath;
|
CF2_GlyphPathRec glyphPath;
|
||||||
|
#endif
|
||||||
|
|
||||||
FT_ZERO( &storage );
|
FT_ZERO( &storage );
|
||||||
FT_ZERO( &results );
|
FT_ZERO( &results );
|
||||||
|
@ -2606,7 +2611,13 @@
|
||||||
* discard `counterMask' and `counterHintMap'.
|
* discard `counterMask' and `counterHintMap'.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
CF2_HintMapRec *counterHintMap = malloc(sizeof(CF2_HintMapRec));
|
||||||
|
/* Ugly but it allows us to reduce the diff */
|
||||||
|
#define counterHintMap (*counterHintMap)
|
||||||
|
#else
|
||||||
CF2_HintMapRec counterHintMap;
|
CF2_HintMapRec counterHintMap;
|
||||||
|
#endif
|
||||||
CF2_HintMaskRec counterMask;
|
CF2_HintMaskRec counterMask;
|
||||||
|
|
||||||
|
|
||||||
|
@ -2627,6 +2638,9 @@
|
||||||
&counterMask,
|
&counterMask,
|
||||||
0,
|
0,
|
||||||
FALSE );
|
FALSE );
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
free(&counterHintMap);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -3031,6 +3045,12 @@
|
||||||
|
|
||||||
FT_TRACE4(( "\n" ));
|
FT_TRACE4(( "\n" ));
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
free(&glyphPath);
|
||||||
|
#undef counterHintMap
|
||||||
|
#undef glyphPath
|
||||||
|
#endif
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue