Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/base/ftoutln.c

Issue 23555005: Update freetype to the latest version of Android external/freetype (Closed) Base URL: https://chromium.googlesource.com/chromium/src/third_party/freetype.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/base/ftobjs.c ('k') | src/base/ftpic.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /***************************************************************************/ 1 /***************************************************************************/
2 /* */ 2 /* */
3 /* ftoutln.c */ 3 /* ftoutln.c */
4 /* */ 4 /* */
5 /* FreeType outline management (body). */ 5 /* FreeType outline management (body). */
6 /* */ 6 /* */
7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010 by */ 7 /* Copyright 1996-2008, 2010, 2012 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */ 9 /* */
10 /* This file is part of the FreeType project, and may only be used, */ 10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */ 11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */ 13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */ 14 /* understand and accept it fully. */
15 /* */ 15 /* */
16 /***************************************************************************/ 16 /***************************************************************************/
17 17
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 } 764 }
765 765
766 x = a->x + ( b->x - a->x ) * (point->y - a->y ) / ( b->y - a->y ); 766 x = a->x + ( b->x - a->x ) * (point->y - a->y ) / ( b->y - a->y );
767 767
768 if ( x < point->x ) 768 if ( x < point->x )
769 n++; 769 n++;
770 else if ( x == point->x ) 770 else if ( x == point->x )
771 return 1; 771 return 1;
772 } 772 }
773 773
774 return ( n % 2 ); 774 return n & 1;
775 } 775 }
776 776
777 777
778 static FT_Bool 778 static FT_Bool
779 ft_contour_enclosed( FT_Outline* outline, 779 ft_contour_enclosed( FT_Outline* outline,
780 FT_UShort c ) 780 FT_UShort c )
781 { 781 {
782 FT_Vector* first; 782 FT_Vector* first;
783 FT_Vector* last; 783 FT_Vector* last;
784 FT_Short i; 784 FT_Short i;
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 return result[0]; 1120 return result[0];
1121 1121
1122 if ( result[1] != FT_ORIENTATION_NONE && result[1] == result[2] ) 1122 if ( result[1] != FT_ORIENTATION_NONE && result[1] == result[2] )
1123 return result[1]; 1123 return result[1];
1124 1124
1125 return FT_ORIENTATION_TRUETYPE; 1125 return FT_ORIENTATION_TRUETYPE;
1126 } 1126 }
1127 1127
1128 1128
1129 /* END */ 1129 /* END */
OLDNEW
« no previous file with comments | « src/base/ftobjs.c ('k') | src/base/ftpic.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698