aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index ba88ceb..2244d51 100644
--- a/main.cpp
+++ b/main.cpp
@@ -170,7 +170,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();