mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-25 04:22:37 +00:00
Merge pull request #10143 from Pokechu22/png-compression-level
Add option for setting the PNG zlib compression level
This commit is contained in:
commit
aa5cb35c86
12 changed files with 125 additions and 30 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue