Settings: Support saving WebP screenshots
This commit is contained in:
parent
f3c0c14b2a
commit
43fc9f1ef2
|
@ -1563,14 +1563,17 @@ const char* Settings::GetDisplayScreenshotModeDisplayName(DisplayScreenshotMode
|
|||
static constexpr const std::array s_display_screenshot_format_names = {
|
||||
"PNG",
|
||||
"JPEG",
|
||||
"WebP",
|
||||
};
|
||||
static constexpr const std::array s_display_screenshot_format_display_names = {
|
||||
TRANSLATE_NOOP("Settings", "PNG"),
|
||||
TRANSLATE_NOOP("Settings", "JPEG"),
|
||||
TRANSLATE_NOOP("Settings", "WebP"),
|
||||
};
|
||||
static constexpr const std::array s_display_screenshot_format_extensions = {
|
||||
"png",
|
||||
"jpg",
|
||||
"webp",
|
||||
};
|
||||
|
||||
std::optional<DisplayScreenshotFormat> Settings::ParseDisplayScreenshotFormat(const char* str)
|
||||
|
|
|
@ -181,6 +181,7 @@ enum class DisplayScreenshotFormat : u8
|
|||
{
|
||||
PNG,
|
||||
JPEG,
|
||||
WebP,
|
||||
Count
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue