Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1719 → Rev 1720

/uspace/trunk/fb/ppm.c
56,7 → 56,7
}
}
 
int ppm_get_data(unsigned char *data, size_t dtsz, int *width, int *height)
int ppm_get_data(unsigned char *data, size_t dtsz, unsigned int *width, unsigned int *height)
{
/* Read magic */
if (data[0] != 'P' || data[1] != '6')
89,7 → 89,6
unsigned int width, height;
unsigned int maxcolor;
int i;
void *maxdatap = data + datasz;
unsigned int color;
unsigned int coef;
 
124,4 → 123,6
(*putpixel)(vport, sx+(i % width), sy+(i / width), color);
data += 3;
}
 
return 0;
}