freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] [pshinter] Ensure all point flags are i


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] [pshinter] Ensure all point flags are initialized.
Date: Mon, 24 Jan 2022 18:23:16 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/pshinter/pshalgo.c
    ... ... @@ -1228,8 +1228,9 @@
    1228 1228
             FT_Pos  dxi, dyi, dxo, dyo;
    
    1229 1229
     
    
    1230 1230
     
    
    1231
    +        point->flags = 0;
    
    1231 1232
             if ( !( outline->tags[n] & FT_CURVE_TAG_ON ) )
    
    1232
    -          point->flags = PSH_POINT_OFF;
    
    1233
    +          psh_point_set_off( point );
    
    1233 1234
     
    
    1234 1235
             dxi = vec[n].x - vec[n_prev].x;
    
    1235 1236
             dyi = vec[n].y - vec[n_prev].y;
    
    ... ... @@ -1242,14 +1243,14 @@
    1242 1243
             point->dir_out = psh_compute_dir( dxo, dyo );
    
    1243 1244
     
    
    1244 1245
             /* detect smooth points */
    
    1245
    -        if ( point->flags & PSH_POINT_OFF )
    
    1246
    -          point->flags |= PSH_POINT_SMOOTH;
    
    1246
    +        if ( psh_point_is_off( point ) )
    
    1247
    +          psh_point_set_smooth( point );
    
    1247 1248
     
    
    1248 1249
             else if ( point->dir_in == point->dir_out )
    
    1249 1250
             {
    
    1250 1251
               if ( point->dir_out != PSH_DIR_NONE           ||
    
    1251 1252
                    psh_corner_is_flat( dxi, dyi, dxo, dyo ) )
    
    1252
    -            point->flags |= PSH_POINT_SMOOTH;
    
    1253
    +            psh_point_set_smooth( point );
    
    1253 1254
             }
    
    1254 1255
           }
    
    1255 1256
         }
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]