diff options
author | Mateja <mail@matejamaric.com> | 2021-01-18 16:47:16 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-01-18 16:47:16 +0100 |
commit | 4d83680a4c06e7e55cb5e1e0487b5485f068d13f (patch) | |
tree | d62a6d530ebf09066e8e2b45e17862b68c6881f2 | |
parent | 0e7961a7f5e950bca05c2a752dbf42799f7af20a (diff) | |
download | scanline-render-4d83680a4c06e7e55cb5e1e0487b5485f068d13f.tar.gz scanline-render-4d83680a4c06e7e55cb5e1e0487b5485f068d13f.zip |
Windows PPM whitespace fix.
-rwxr-xr-x | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -154,7 +154,7 @@ int main() std::ofstream imageFile; imageFile.open("./image.ppm"); - imageFile << "P6\n" << image.imageWidth << " " << image.imageHeight << "\n255\n"; + imageFile << "P6 " << image.imageWidth << " " << image.imageHeight << " 255 "; imageFile.write((char*)image.pixels, image.imageWidth * image.imageHeight * 3); imageFile.close(); |