shithub: freetype+ttf2subf

Download patch

ref: 5a96b07c1f5dbd0a0a27f3fa41a5052a702d2b49
parent: 47a5f41de65b358ccbdada33a7c2fec4790aa3f9
author: Werner Lemberg <[email protected]>
date: Tue Oct 17 10:29:48 EDT 2000

Fixed two typos spotted by Ryan Martindale <[email protected]>.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -163,7 +163,7 @@
     size = (FT_ULong)( pitch * source->rows );
 
     if ( !ALLOC( target->buffer, size ) )
-      MEM_Copy( source->buffer, target->buffer, size );
+      MEM_Copy( target->buffer, source->buffer, size );
 
     return error;
   }
@@ -233,7 +233,7 @@
     cbox->xMin = glyph->left << 6;
     cbox->xMax = cbox->xMin + ( glyph->bitmap.width << 6 );
     cbox->yMax = glyph->top << 6;
-    cbox->yMin = cbox->xMax - ( glyph->bitmap.rows << 6 );
+    cbox->yMin = cbox->yMax - ( glyph->bitmap.rows << 6 );
   }