correct formatting

This commit is contained in:
T_chan 2022-01-25 17:51:05 +00:00
parent 69f6b718f5
commit c1e2e32eb9

View File

@ -31,14 +31,14 @@ int ImageLoad(char *filename, Image *image) {
return 0;
}
image->sizeX = sizeX;
printf("Width of %s: %d\n", filename, sizeX);
printf("Width of %s: %d\n", filename, sizeX);
// read the height
if ((i = fread(&sizeY, 4, 1, file)) != 1) {
printf("Error reading height from %s.\n", filename);
return 0;
}
image->sizeY = sizeY;
image->sizeY = sizeY;
printf("Height of %s: %d\n", filename, sizeY);
// calculate the size (assuming 24 bits or 3 bytes per pixel).