comparison src/glyphs-eimage.c @ 314:341dac730539 r21-0b55

Import from CVS: tag r21-0b55
author cvs
date Mon, 13 Aug 2007 10:44:22 +0200
parents 33bdb3d4b97f
children 512e409c26a2
comparison
equal deleted inserted replaced
313:2905de29931f 314:341dac730539
696 pass = 0; 696 pass = 0;
697 row = interlace ? InterlacedOffset[pass] : 0; 697 row = interlace ? InterlacedOffset[pass] : 0;
698 eip = unwind.eimage; 698 eip = unwind.eimage;
699 for (i = 0; i < height; i++) 699 for (i = 0; i < height; i++)
700 { 700 {
701 if (interlace && row >= height) 701 if (interlace)
702 row = InterlacedOffset[++pass]; 702 if (row >= height) {
703 row = InterlacedOffset[++pass];
704 while (row > height)
705 row = InterlacedOffset[++pass];
706 }
703 eip = unwind.eimage + (row * width * 3); 707 eip = unwind.eimage + (row * width * 3);
704 for (j = 0; j < width; j++) 708 for (j = 0; j < width; j++)
705 { 709 {
706 unsigned char pixel = unwind.giffile->SavedImages[0].RasterBits[(i * width) + j]; 710 unsigned char pixel = unwind.giffile->SavedImages[0].RasterBits[(i * width) + j];
707 *eip++ = cmo->Colors[pixel].Red; 711 *eip++ = cmo->Colors[pixel].Red;