mirror of https://github.com/PCSX2/pcsx2.git
GS: Support saving WebP screenshots
This commit is contained in:
parent
590b81a782
commit
ebf0cf91b6
|
@ -426,6 +426,11 @@
|
|||
<string>JPEG</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>WebP</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
|
@ -326,6 +326,7 @@ enum class GSScreenshotFormat : u8
|
|||
{
|
||||
PNG,
|
||||
JPEG,
|
||||
WebP,
|
||||
Count,
|
||||
};
|
||||
|
||||
|
|
|
@ -422,7 +422,7 @@ static GSVector4i CalculateDrawSrcRect(const GSTexture* src, const GSVector2i re
|
|||
static const char* GetScreenshotSuffix()
|
||||
{
|
||||
static constexpr const char* suffixes[static_cast<u8>(GSScreenshotFormat::Count)] = {
|
||||
"png", "jpg"};
|
||||
"png", "jpg", "webp"};
|
||||
return suffixes[static_cast<u8>(GSConfig.ScreenshotFormat)];
|
||||
}
|
||||
|
||||
|
|
|
@ -3219,6 +3219,7 @@ void FullscreenUI::DrawGraphicsSettingsPage()
|
|||
static constexpr const char* s_screenshot_formats[] = {
|
||||
FSUI_NSTR("PNG"),
|
||||
FSUI_NSTR("JPEG"),
|
||||
FSUI_NSTR("WebP"),
|
||||
};
|
||||
|
||||
SettingsInterface* bsi = GetEditingSettingsInterface();
|
||||
|
|
Loading…
Reference in New Issue