PKGBUILDs/extra/freetype2/freetype-2.3.3-ftbitmap.patch
2009-09-26 09:35:50 -05:00

25 lines
894 B
Diff

===================================================================
RCS file: /var/lib/cvs/sources/freetype/freetype2/src/base/ftbitmap.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- freetype/freetype2/src/base/ftbitmap.c 2007/03/29 11:56:21 1.17
+++ freetype/freetype2/src/base/ftbitmap.c 2007/04/06 08:19:04 1.18
@@ -149,15 +149,15 @@
if ( bit_last < bit_width )
{
FT_Byte* line = bitmap->buffer + ( bit_last >> 3 );
+ FT_Byte* end = bitmap->buffer + pitch;
FT_Int shift = bit_last & 7;
FT_UInt mask = 0xFF00U >> shift;
FT_Int count = height;
- for ( ; count > 0; count--, line += pitch )
+ for ( ; count > 0; count--, line += pitch, end += pitch )
{
FT_Byte* write = line;
- FT_Byte* end = line + pitch;
if ( shift > 0 )