Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
6e7ef168
by Alexei Podtelezhnikov (Алексей Подтележников) at 2023-11-13T22:07:42-05:00
1 changed file:
Changes:
... | ... | @@ -1978,17 +1978,14 @@ |
1978 | 1978 | if ( !current )
|
1979 | 1979 | return;
|
1980 | 1980 | |
1981 | - next = current->link;
|
|
1982 | - |
|
1983 | - while ( next )
|
|
1981 | + while ( current->link )
|
|
1984 | 1982 | {
|
1983 | + next = current->link;
|
|
1984 | + |
|
1985 | 1985 | if ( current->X <= next->X )
|
1986 | 1986 | {
|
1987 | 1987 | old = ¤t->link;
|
1988 | - current = *old;
|
|
1989 | - |
|
1990 | - if ( !current )
|
|
1991 | - return;
|
|
1988 | + current = next;
|
|
1992 | 1989 | }
|
1993 | 1990 | else
|
1994 | 1991 | {
|
... | ... | @@ -1996,11 +1993,10 @@ |
1996 | 1993 | current->link = next->link;
|
1997 | 1994 | next->link = current;
|
1998 | 1995 | |
1996 | + /* Restarting */
|
|
1999 | 1997 | old = list;
|
2000 | 1998 | current = *old;
|
2001 | 1999 | }
|
2002 | - |
|
2003 | - next = current->link;
|
|
2004 | 2000 | }
|
2005 | 2001 | }
|
2006 | 2002 |