Fix image::Bl output pgm and ppm
This commit is contained in:
parent
e85412d61a
commit
c5364f2ebc
1 changed files with 2 additions and 2 deletions
|
@ -111,11 +111,11 @@ bool image::Bl::writeToFile(file_type type, bool canOverwrite, const char *filen
|
||||||
break;
|
break;
|
||||||
case file_type::PGM:
|
case file_type::PGM:
|
||||||
file = fopen(filename, "wb");
|
file = fopen(filename, "wb");
|
||||||
fprintf(file, "P5\n%d %d\n255", width, height);
|
fprintf(file, "P5\n%d %d\n255\n", width, height);
|
||||||
break;
|
break;
|
||||||
case file_type::PPM:
|
case file_type::PPM:
|
||||||
file = fopen(filename, "wb");
|
file = fopen(filename, "wb");
|
||||||
fprintf(file, "P6\n%d %d\n255", width, height);
|
fprintf(file, "P6\n%d %d\n255\n", width, height);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
|
Loading…
Reference in a new issue