From e31b0b8b37ae52e9402dc351e5fb0f361d30d0e0 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 19 Sep 2025 21:55:35 +0800 Subject: Fix windows png format in demo. --- demos/Graphics/SvgPath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos/Graphics/SvgPath.cpp') 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, -- cgit v1.2.3