shithub: freetype+ttf2subf

Download patch

ref: 2d6e1fbce7cb6216af048bba4d6877a573aa50fb
parent: 3c783c1b70ca6357f3520d4c0462f08d1b7e1a65
author: Behdad Esfahbod <[email protected]>
date: Thu May 23 04:01:20 EDT 2013

Compilation fix.

* src/truetype/ttinterp.c (TT_RunIns)
[!TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Make it work.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-05-23  Behdad Esfahbod  <[email protected]>
+
+	Compilation fix.
+
+	* src/truetype/ttinterp.c (TT_RunIns)
+	[!TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Make it work.
+
 2013-05-22  Infinality  <[email protected]>
 
 	[truetype] Formatting and an additional subpixel tweak.
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -8134,7 +8134,8 @@
   FT_EXPORT_DEF( FT_Error )
   TT_RunIns( TT_ExecContext  exc )
   {
-    FT_Long  ins_counter = 0;  /* executed instructions counter */
+    FT_Long    ins_counter = 0;  /* executed instructions counter */
+    FT_UShort  i;
 
 #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
     FT_Byte    opcode_pattern[1][2] = {
@@ -8147,7 +8148,6 @@
     FT_UShort  opcode_patterns   = 1;
     FT_UShort  opcode_pointer[1] = { 0 };
     FT_UShort  opcode_size[1]    = { 1 };
-    FT_UShort  i;
 #endif /* TT_CONFIG_OPTION_SUBPIXEL_HINTING */