Skip to content

Commit a857ec9

Browse files
committed
1 parent 9990554 commit a857ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/viewer/src/AutomationEngine.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void exportScreenshot(View* view, Renderer* renderer, std::string filenam
8080
convertRGBAtoRGB(buffer, vp.width, vp.height);
8181

8282
Path out(state->filename);
83-
std::ofstream ppmStream(out);
83+
std::ofstream ppmStream(out, std::ios_base::binary);
8484
ppmStream << "P6 " << vp.width << " " << vp.height << " " << 255 << std::endl;
8585
ppmStream.write(static_cast<char*>(buffer), vp.width * vp.height * 3);
8686
delete[] static_cast<uint8_t*>(buffer);

0 commit comments

Comments
 (0)