mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 17:01:28 +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
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_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;
|
||||
|
||||
#endif
|
||||
|
||||
FT_ZERO( &storage );
|
||||
FT_ZERO( &results );
|
||||
|
@ -2606,7 +2611,13 @@
|
|||
* 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;
|
||||
#endif
|
||||
CF2_HintMaskRec counterMask;
|
||||
|
||||
|
||||
|
@ -2627,6 +2638,9 @@
|
|||
&counterMask,
|
||||
0,
|
||||
FALSE );
|
||||
#ifdef __REACTOS__
|
||||
free(&counterHintMap);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -3031,6 +3045,12 @@
|
|||
|
||||
FT_TRACE4(( "\n" ));
|
||||
|
||||
#ifdef __REACTOS__
|
||||
free(&glyphPath);
|
||||
#undef counterHintMap
|
||||
#undef glyphPath
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue