aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-01-18 16:57:38 +0100
committerMateja <mail@matejamaric.com>2021-01-18 16:57:38 +0100
commitf401d2e9c253406355082eb0eed675e6430e5c48 (patch)
tree0bb6c4b2407e15acd0a6d8aa833c2a233d438b99
parent7bd9013e43a65f7265a94d3d825ab83e292d00e1 (diff)
downloadbarycentric-render-f401d2e9c253406355082eb0eed675e6430e5c48.tar.gz
barycentric-render-f401d2e9c253406355082eb0eed675e6430e5c48.zip
Windows PPM whitespace fix.HEADmaster
-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();