Skip to content

Commit

Permalink
ViceoConfig: Adjust FrameDumpResolutionType enum class to style guide…
Browse files Browse the repository at this point in the history
…lines
  • Loading branch information
AdmiralCurtiss committed Apr 13, 2024
1 parent 66592f7 commit db619ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Core/Config/GraphicsSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<FrameDumpResolutionType> GFX_FRAME_DUMPS_RESOLUTION_TYPE{
{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<bool> GFX_ENABLE_GPU_TEXTURE_DECODING{
{System::GFX, "Settings", "EnableGPUTextureDecoding"}, false};
Expand Down
6 changes: 3 additions & 3 deletions Source/Core/VideoCommon/Present.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void Presenter::ProcessFrameDumping(u64 ticks) const
switch (g_ActiveConfig.frame_dumps_resolution_type)
{
default:
case FrameDumpResolutionType::WINDOW_RESOLUTION:
case FrameDumpResolutionType::WindowResolution:
{
if (!g_gfx->IsHeadless())
{
Expand All @@ -221,7 +221,7 @@ void Presenter::ProcessFrameDumping(u64 ticks) const
}
[[fallthrough]];
}
case FrameDumpResolutionType::XFB_ASPECT_RATIO_CORRECTED_RESOLUTION:
case FrameDumpResolutionType::XFBAspectRatioCorrectedResolution:
{
target_rect = m_xfb_rect;
const bool allow_stretch = false;
Expand All @@ -233,7 +233,7 @@ void Presenter::ProcessFrameDumping(u64 ticks) const
target_rect = MathUtil::Rectangle<int>(0, 0, int_width, int_height);
break;
}
case FrameDumpResolutionType::XFB_RAW_RESOLUTION:
case FrameDumpResolutionType::XFBRawResolution:
{
target_rect = m_xfb_rect;
break;
Expand Down
8 changes: 4 additions & 4 deletions Source/Core/VideoCommon/VideoConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ enum class TriState : int
enum class FrameDumpResolutionType : int
{
// 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)
XFB_ASPECT_RATIO_CORRECTED_RESOLUTION,
XFBAspectRatioCorrectedResolution,
// 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.
Expand Down Expand Up @@ -200,7 +200,7 @@ struct VideoConfig final
std::string sDumpFormat;
std::string sDumpPath;
FrameDumpResolutionType frame_dumps_resolution_type =
FrameDumpResolutionType::XFB_ASPECT_RATIO_CORRECTED_RESOLUTION;
FrameDumpResolutionType::XFBAspectRatioCorrectedResolution;
bool bBorderlessFullscreen = false;
bool bEnableGPUTextureDecoding = false;
bool bPreferVSForLinePointExpansion = false;
Expand Down

0 comments on commit db619ed

Please sign in to comment.