diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/Graphics/DrawCircle.cpp | 2 | ||||
-rw-r--r-- | demos/Graphics/SvgPath.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/Graphics/DrawCircle.cpp b/demos/Graphics/DrawCircle.cpp index db63c7dc..d3246527 100644 --- a/demos/Graphics/DrawCircle.cpp +++ b/demos/Graphics/DrawCircle.cpp @@ -21,7 +21,7 @@ int main() { painter->EndDraw(); } - cru::io::CFileStream file_stream("draw-circle-demo.png", "w"); + cru::io::CFileStream file_stream("draw-circle-demo.png", "wb"); graphics_factory->GetImageFactory()->EncodeToStream( image.get(), &file_stream, cru::platform::graphics::ImageFormat::Png, 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, |