diff options
-rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |