Parent Directory | Revision Log | Patch
revision 1.19, Sat Sep 4 14:16:24 2004 UTC | revision 1.20, Mon Aug 1 10:53:46 2005 UTC | |
---|---|---|
# | Line 574 | Line 574 |
574 | #else | #else |
575 | { | { |
576 | int i; | int i; |
577 | for (i=0; i<width*height*BPP;i+=BPP) { | for (i=0; i<XDIM*YDIM*BPP;i+=BPP) { |
578 | if (BPP == 1) { | if (BPP == 1) { |
579 | fputc(image+i, f); | fputc(*(image+i), f); |
580 | } else if (BPP == 2) { | } else if (BPP == 2) { |
581 | fputc(image+i+1, f); | fputc(*(image+i+1), f); |
582 | fputc(image+i+0, f); | fputc(*(image+i+0), f); |
583 | } else if (BPP == 3) { | } else if (BPP == 3) { |
584 | fputc(image+i+2, f); | fputc(*(image+i+2), f); |
585 | fputc(image+i+1, f); | fputc(*(image+i+1), f); |
586 | fputc(image+i+0, f); | fputc(*(image+i+0), f); |
587 | } else if (BPP == 4) { | } else if (BPP == 4) { |
588 | fputc(image+i+3, f); | fputc(*(image+i+3), f); |
589 | fputc(image+i+2, f); | fputc(*(image+i+2), f); |
590 | fputc(image+i+1, f); | fputc(*(image+i+1), f); |
591 | fputc(image+i+0, f); | fputc(*(image+i+0), f); |
592 | } | } |
593 | } | } |
594 | } | } |
|
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |