Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
1f72a120
by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-08-05T13:05:51+00:00
1 changed file:
Changes:
... | ... | @@ -182,7 +182,7 @@ |
182 | 182 | |
183 | 183 | /* first point not included in run count */
|
184 | 184 | cnt++;
|
185 | - if ( i + cnt > n )
|
|
185 | + if ( cnt > n - i )
|
|
186 | 186 | cnt = n - i;
|
187 | 187 | |
188 | 188 | if ( runcnt & GX_PT_POINTS_ARE_WORDS )
|
... | ... | @@ -281,7 +281,7 @@ |
281 | 281 | |
282 | 282 | /* first point not included in run count */
|
283 | 283 | cnt++;
|
284 | - if ( i + cnt > delta_cnt )
|
|
284 | + if ( cnt > delta_cnt - i )
|
|
285 | 285 | cnt = delta_cnt - i;
|
286 | 286 | |
287 | 287 | if ( runcnt & GX_DT_DELTAS_ARE_ZERO )
|