From f401d2e9c253406355082eb0eed675e6430e5c48 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 18 Jan 2021 16:57:38 +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 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(); -- cgit v1.2.3