diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-10-01 17:56:46 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2021-11-18 13:10:22 -0800 |
| commit | 94ccf765af5264ecc2173b103e97f73cc55e128d (patch) | |
| tree | ad9342ebb6311ae22bceb8d840c1a200acaf06d2 /Source/Core/VideoCommon | |
| parent | 6f4bbac528682389e34a1a4985820ee5137619c7 (diff) | |
Add option for setting the PNG zlib compression level
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 043add2996..f293977623 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -38,6 +38,7 @@ #include "Common/Thread.h" #include "Common/Timer.h" +#include "Core/Config/GraphicsSettings.h" #include "Core/Config/NetplaySettings.h" #include "Core/Config/SYSCONFSettings.h" #include "Core/ConfigManager.h" @@ -95,7 +96,8 @@ static float AspectToWidescreen(float aspect) static bool DumpFrameToPNG(const FrameDump::FrameData& frame, const std::string& file_name) { return Common::ConvertRGBAToRGBAndSavePNG(file_name, frame.data, frame.width, frame.height, - frame.stride); + frame.stride, + Config::Get(Config::GFX_PNG_COMPRESSION_LEVEL)); } Renderer::Renderer(int backbuffer_width, int backbuffer_height, float backbuffer_scale, |
