[pshinter] Additional clean-ups.

* src/pshinter/pshalgo.h (psh_hint_table_find_strong_points): Streamline code.
* src/pshinter/pshalgo.h (PSH_Glyph): Remove unused fields.
unsigned-revisions
Alexei Podtelezhnikov 3 years ago
parent 227445f613
commit ec6a458821
  1. 10
      src/pshinter/pshalgo.c
  2. 4
      src/pshinter/pshalgo.h

@ -1418,18 +1418,14 @@
for ( ; count > 0; count--, point++ )
{
PSH_Dir point_dir = PSH_DIR_NONE;
FT_Pos org_u = point->org_u;
PSH_Dir point_dir;
FT_Pos org_u = point->org_u;
if ( psh_point_is_strong( point ) )
continue;
if ( point->dir_in & major_dir )
point_dir = point->dir_in;
else if ( point->dir_out & major_dir )
point_dir = point->dir_out;
point_dir = ( point->dir_in | point->dir_out ) & major_dir;
if ( point_dir & ( PSH_DIR_DOWN | PSH_DIR_RIGHT ) )
{

@ -195,10 +195,6 @@ FT_BEGIN_HEADER
PSH_Globals globals;
PSH_Hint_TableRec hint_tables[2];
FT_Bool vertical;
FT_Int major_dir;
FT_Int minor_dir;
FT_Bool do_horz_hints;
FT_Bool do_vert_hints;
FT_Bool do_horz_snapping;

Loading…
Cancel
Save