diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-19 21:55:35 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-19 21:55:35 +0800 |
commit | e31b0b8b37ae52e9402dc351e5fb0f361d30d0e0 (patch) | |
tree | cf75c502008d25a5dfd7c372d147258859e76e64 /demos/Graphics/SvgPath.cpp | |
parent | 9115718978a09376a930b8aab057a4e47fd6c522 (diff) | |
download | cru-e31b0b8b37ae52e9402dc351e5fb0f361d30d0e0.tar.gz cru-e31b0b8b37ae52e9402dc351e5fb0f361d30d0e0.tar.bz2 cru-e31b0b8b37ae52e9402dc351e5fb0f361d30d0e0.zip |
Fix windows png format in demo.
Diffstat (limited to 'demos/Graphics/SvgPath.cpp')
-rw-r--r-- | demos/Graphics/SvgPath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/Graphics/SvgPath.cpp b/demos/Graphics/SvgPath.cpp index 44524d77..332456a8 100644 --- a/demos/Graphics/SvgPath.cpp +++ b/demos/Graphics/SvgPath.cpp @@ -31,7 +31,7 @@ M6.5 0a.5.5 0 0 0 0 1H7v1.07a7.001 7.001 0 0 0-3.273 12.474l-.602.602a.5.5 0 0 0 painter->FillGeometry(geometry.get(), brush.get()); painter->EndDraw(); - cru::io::CFileStream file_stream("./svg-path-demo.png", "w"); + cru::io::CFileStream file_stream("./svg-path-demo.png", "wb"); graphics_factory->GetImageFactory()->EncodeToStream( image.get(), &file_stream, cru::platform::graphics::ImageFormat::Png, |