summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/freetype2/freetype-2.3.3-ftbitmap.patch
blob: bbb8b2b5370ac3e04b7a4d17de46411331228cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
===================================================================
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 )