* src/sfnt/ttsbit.c (tt_face_load_sbix_image): Refactor `flip`.

This commit is contained in:
Alexei Podtelezhnikov 2025-01-01 22:28:36 -05:00
parent abed051e06
commit 1beb83fd12
1 changed files with 4 additions and 5 deletions

View File

@ -1519,15 +1519,14 @@
switch ( graphicType )
{
case FT_MAKE_TAG( 'f', 'l', 'i', 'p' ):
flipped = !flipped;
FALL_THROUGH;
case FT_MAKE_TAG( 'd', 'u', 'p', 'e' ):
if ( recurse_depth < 4 )
if ( recurse_depth++ < 4 )
{
glyph_index = FT_GET_USHORT();
FT_FRAME_EXIT();
recurse_depth++;
if ( graphicType == FT_MAKE_TAG( 'f', 'l', 'i', 'p' ) )
flipped = !flipped;
goto retry;
}