forked from minhngoc25a/freetype2
[pshinter] Fix C++ compilation.
* src/pshinter/pshalgo.c (psh_compute_dir): Fix type of `result`. (psh_hint_table_find_strong_points): Add cast.
This commit is contained in:
parent
7ef266045f
commit
cce782281b
|
@ -1055,7 +1055,7 @@
|
||||||
FT_Pos dy )
|
FT_Pos dy )
|
||||||
{
|
{
|
||||||
FT_Pos ax, ay;
|
FT_Pos ax, ay;
|
||||||
int result = PSH_DIR_NONE;
|
PSH_Dir result = PSH_DIR_NONE;
|
||||||
|
|
||||||
|
|
||||||
ax = FT_ABS( dx );
|
ax = FT_ABS( dx );
|
||||||
|
@ -1425,7 +1425,8 @@
|
||||||
if ( psh_point_is_strong( point ) )
|
if ( psh_point_is_strong( point ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
point_dir = ( point->dir_in | point->dir_out ) & major_dir;
|
point_dir =
|
||||||
|
(PSH_Dir)( ( point->dir_in | point->dir_out ) & major_dir );
|
||||||
|
|
||||||
if ( point_dir & ( PSH_DIR_DOWN | PSH_DIR_RIGHT ) )
|
if ( point_dir & ( PSH_DIR_DOWN | PSH_DIR_RIGHT ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue