/[freetype]/freetype2/src/base/ftbitmap.c
ViewVC logotype

Diff of /freetype2/src/base/ftbitmap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by wl, Mon May 30 19:22:44 2005 UTC revision 1.10 by freetype, Thu Jun 30 11:46:45 2005 UTC
# Line 277  Line 277 
277      /* for each row */      /* for each row */
278      for ( y = 0; y < bitmap->rows ; y++ )      for ( y = 0; y < bitmap->rows ; y++ )
279      {      {
280        /*        /*
281         * Horizontally:         * Horizontally:
282         *         *
283         * From the last pixel on, make each pixel or'ed with the         * From the last pixel on, make each pixel or'ed with the
# Line 310  Line 310 
310              {              {
311                if ( p[x] + p[x - i] > bitmap->num_grays - 1 )                if ( p[x] + p[x - i] > bitmap->num_grays - 1 )
312                {                {
313                  p[x] = bitmap->num_grays - 1;                  p[x] = (unsigned char)(bitmap->num_grays - 1);
314                  break;                  break;
315                }                }
316                else                else
317                {                {
318                  p[x] += p[x - i];                  p[x] = (unsigned char)(p[x] + p[x-i]);
319                  if ( p[x] == bitmap->num_grays - 1 )                  if ( p[x] == bitmap->num_grays - 1 )
320                    break;                    break;
321                }                }
# Line 326  Line 326 
326          }          }
327        }        }
328    
329        /*        /*
330         * Vertically:         * Vertically:
331         *         *
332         * Make the above `ystr' rows or'ed with it.         * Make the above `ystr' rows or'ed with it.

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26