aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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();