for( y = 0; y <= pcx->ymax; y++, pix += pcx->xmax + 1 )
{
/* do a scanline */
+ runLength = 0;
for( x=0; x <= pcx->xmax; )
{
/* RR2DO2 */
//
// load the file
//
- nLen = vfsLoadFile ( ( char * ) name, (void **)&buffer, 0);
+ nLen = vfsLoadFile ( name, (void **)&buffer, 0);
if (nLen == -1)
{
Error ("Couldn't read %s", name);
void WriteTGAGray (const char *filename, byte *data, int width, int height) {
byte buffer[18];
- int i;
- int c;
FILE *f;
memset (buffer, 0, 18);