Skip to content

Commit

Permalink
FreeType changed a char* to unsigned char*, add appropriate cast
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/agg/svn@142 ab9de31f-a152-4fe9-8809-95f286f9ca89

# Conflicts:
#	font_freetype/agg_font_freetype2.cpp
  • Loading branch information
jhorigan authored and xakod committed Nov 9, 2024
1 parent a66541a commit 6ac5e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion font_freetype/agg_font_freetype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ namespace agg
v_control = v_start;

point = outline.points + first;
tags = outline.tags + first;
tags = (char*)(outline.tags) + first;
tag = FT_CURVE_TAG(tags[0]);

// A contour cannot start with a cubic control point!
Expand Down
2 changes: 1 addition & 1 deletion font_freetype/agg_font_freetype2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ namespace fman {
v_control = v_start;

point = outline.points + first;
tags = outline.tags + first;
tags = (char*)(outline.tags) + first;
tag = FT_CURVE_TAG(tags[0]);

// A contour cannot start with a cubic control point!
Expand Down

0 comments on commit 6ac5e12

Please sign in to comment.