aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-01-18 16:47:16 +0100
committerMateja <mail@matejamaric.com>2021-01-18 16:47:16 +0100
commit4d83680a4c06e7e55cb5e1e0487b5485f068d13f (patch)
treed62a6d530ebf09066e8e2b45e17862b68c6881f2 /main.cpp
parent0e7961a7f5e950bca05c2a752dbf42799f7af20a (diff)
downloadscanline-render-4d83680a4c06e7e55cb5e1e0487b5485f068d13f.tar.gz
scanline-render-4d83680a4c06e7e55cb5e1e0487b5485f068d13f.zip
Windows PPM whitespace fix.
Diffstat (limited to 'main.cpp')
-rwxr-xr-xmain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 9b1ce8c..a5e5df9 100755
--- a/main.cpp
+++ b/main.cpp
@@ -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();