From 4d83680a4c06e7e55cb5e1e0487b5485f068d13f Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 18 Jan 2021 16:47:16 +0100 Subject: Windows PPM whitespace fix. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3