From 94ccf765af5264ecc2173b103e97f73cc55e128d Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Fri, 1 Oct 2021 17:56:46 -0700 Subject: Add option for setting the PNG zlib compression level --- Source/Core/InputCommon/ImageOperations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/ImageOperations.cpp') diff --git a/Source/Core/InputCommon/ImageOperations.cpp b/Source/Core/InputCommon/ImageOperations.cpp index c7dac141c9..04293c9183 100644 --- a/Source/Core/InputCommon/ImageOperations.cpp +++ b/Source/Core/InputCommon/ImageOperations.cpp @@ -91,7 +91,7 @@ bool WriteImage(const std::string& path, const ImagePixelData& image) } return Common::SavePNG(path, buffer.data(), Common::ImageByteFormat::RGBA, image.width, - image.height); + image.height, image.width * 4); } ImagePixelData Resize(ResizeMode mode, const ImagePixelData& src, u32 new_width, u32 new_height) -- cgit v1.2.3