VideoConfig: Adjust FrameDumpResolutionType enum class to style guidelines

This commit is contained in:
Admiral H. Curtiss 2024-04-13 03:20:06 +02:00
parent 66592f79f2
commit 2f13be5a2d
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
3 changed files with 8 additions and 8 deletions

View File

@ -72,7 +72,7 @@ const Info<std::string> GFX_DUMP_PATH{{System::GFX, "Settings", "DumpPath"}, ""}
const Info<int> GFX_BITRATE_KBPS{{System::GFX, "Settings", "BitrateKbps"}, 25000}; const Info<int> GFX_BITRATE_KBPS{{System::GFX, "Settings", "BitrateKbps"}, 25000};
const Info<FrameDumpResolutionType> GFX_FRAME_DUMPS_RESOLUTION_TYPE{ const Info<FrameDumpResolutionType> GFX_FRAME_DUMPS_RESOLUTION_TYPE{
{System::GFX, "Settings", "FrameDumpsResolutionType"}, {System::GFX, "Settings", "FrameDumpsResolutionType"},
FrameDumpResolutionType::XFB_ASPECT_RATIO_CORRECTED_RESOLUTION}; FrameDumpResolutionType::XFBAspectRatioCorrectedResolution};
const Info<int> GFX_PNG_COMPRESSION_LEVEL{{System::GFX, "Settings", "PNGCompressionLevel"}, 6}; const Info<int> GFX_PNG_COMPRESSION_LEVEL{{System::GFX, "Settings", "PNGCompressionLevel"}, 6};
const Info<bool> GFX_ENABLE_GPU_TEXTURE_DECODING{ const Info<bool> GFX_ENABLE_GPU_TEXTURE_DECODING{
{System::GFX, "Settings", "EnableGPUTextureDecoding"}, false}; {System::GFX, "Settings", "EnableGPUTextureDecoding"}, false};

View File

@ -212,7 +212,7 @@ void Presenter::ProcessFrameDumping(u64 ticks) const
switch (g_ActiveConfig.frame_dumps_resolution_type) switch (g_ActiveConfig.frame_dumps_resolution_type)
{ {
default: default:
case FrameDumpResolutionType::WINDOW_RESOLUTION: case FrameDumpResolutionType::WindowResolution:
{ {
if (!g_gfx->IsHeadless()) if (!g_gfx->IsHeadless())
{ {
@ -221,7 +221,7 @@ void Presenter::ProcessFrameDumping(u64 ticks) const
} }
[[fallthrough]]; [[fallthrough]];
} }
case FrameDumpResolutionType::XFB_ASPECT_RATIO_CORRECTED_RESOLUTION: case FrameDumpResolutionType::XFBAspectRatioCorrectedResolution:
{ {
target_rect = m_xfb_rect; target_rect = m_xfb_rect;
const bool allow_stretch = false; const bool allow_stretch = false;
@ -233,7 +233,7 @@ void Presenter::ProcessFrameDumping(u64 ticks) const
target_rect = MathUtil::Rectangle<int>(0, 0, int_width, int_height); target_rect = MathUtil::Rectangle<int>(0, 0, int_width, int_height);
break; break;
} }
case FrameDumpResolutionType::XFB_RAW_RESOLUTION: case FrameDumpResolutionType::XFBRawResolution:
{ {
target_rect = m_xfb_rect; target_rect = m_xfb_rect;
break; break;

View File

@ -83,11 +83,11 @@ enum class TriState : int
enum class FrameDumpResolutionType : int enum class FrameDumpResolutionType : int
{ {
// Window resolution (not including potential back buffer black borders) // Window resolution (not including potential back buffer black borders)
WINDOW_RESOLUTION, WindowResolution,
// The aspect ratio corrected XFB resolution (XFB pixels might not have been square) // The aspect ratio corrected XFB resolution (XFB pixels might not have been square)
XFB_ASPECT_RATIO_CORRECTED_RESOLUTION, XFBAspectRatioCorrectedResolution,
// The raw unscaled XFB resolution (based on "internal resolution" scale) // The raw unscaled XFB resolution (based on "internal resolution" scale)
XFB_RAW_RESOLUTION, XFBRawResolution,
}; };
// Bitmask containing information about which configuration has changed for the backend. // Bitmask containing information about which configuration has changed for the backend.
@ -200,7 +200,7 @@ struct VideoConfig final
std::string sDumpFormat; std::string sDumpFormat;
std::string sDumpPath; std::string sDumpPath;
FrameDumpResolutionType frame_dumps_resolution_type = FrameDumpResolutionType frame_dumps_resolution_type =
FrameDumpResolutionType::XFB_ASPECT_RATIO_CORRECTED_RESOLUTION; FrameDumpResolutionType::XFBAspectRatioCorrectedResolution;
bool bBorderlessFullscreen = false; bool bBorderlessFullscreen = false;
bool bEnableGPUTextureDecoding = false; bool bEnableGPUTextureDecoding = false;
bool bPreferVSForLinePointExpansion = false; bool bPreferVSForLinePointExpansion = false;