mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Merge pull request #12170 from Filoppi/custom_aspect_ratio
Add support for custom aspect ratios
This commit is contained in:
@ -21,6 +21,10 @@ const Info<int> GFX_ADAPTER{{System::GFX, "Hardware", "Adapter"}, 0};
|
||||
|
||||
const Info<bool> GFX_WIDESCREEN_HACK{{System::GFX, "Settings", "wideScreenHack"}, false};
|
||||
const Info<AspectMode> GFX_ASPECT_RATIO{{System::GFX, "Settings", "AspectRatio"}, AspectMode::Auto};
|
||||
const Info<int> GFX_CUSTOM_ASPECT_RATIO_WIDTH{{System::GFX, "Settings", "CustomAspectRatioWidth"},
|
||||
1};
|
||||
const Info<int> GFX_CUSTOM_ASPECT_RATIO_HEIGHT{{System::GFX, "Settings", "CustomAspectRatioHeight"},
|
||||
1};
|
||||
const Info<AspectMode> GFX_SUGGESTED_ASPECT_RATIO{{System::GFX, "Settings", "SuggestedAspectRatio"},
|
||||
AspectMode::Auto};
|
||||
const Info<u32> GFX_WIDESCREEN_HEURISTIC_TRANSITION_THRESHOLD{
|
||||
|
@ -28,6 +28,8 @@ extern const Info<int> GFX_ADAPTER;
|
||||
|
||||
extern const Info<bool> GFX_WIDESCREEN_HACK;
|
||||
extern const Info<AspectMode> GFX_ASPECT_RATIO;
|
||||
extern const Info<int> GFX_CUSTOM_ASPECT_RATIO_WIDTH;
|
||||
extern const Info<int> GFX_CUSTOM_ASPECT_RATIO_HEIGHT;
|
||||
extern const Info<AspectMode> GFX_SUGGESTED_ASPECT_RATIO;
|
||||
extern const Info<u32> GFX_WIDESCREEN_HEURISTIC_TRANSITION_THRESHOLD;
|
||||
extern const Info<float> GFX_WIDESCREEN_HEURISTIC_ASPECT_RATIO_SLOP;
|
||||
|
@ -477,7 +477,7 @@ float VideoInterfaceManager::GetAspectRatio() const
|
||||
// signal (which would be 4:3)
|
||||
|
||||
// This function only deals with standard aspect ratios. For widescreen aspect ratios,
|
||||
// multiply the result by 1.33333..
|
||||
// multiply the result by 1.33333... (the ratio between 16:9 and 4:3)
|
||||
|
||||
// 1. Get our active area in BT.601 samples (more or less pixels)
|
||||
int active_lines = m_vertical_timing_register.ACV;
|
||||
|
@ -388,9 +388,9 @@ public:
|
||||
u32 GetTicksPerHalfLine() const;
|
||||
u32 GetTicksPerField() const;
|
||||
|
||||
// Get the aspect ratio of VI's active area.
|
||||
// Get the aspect ratio of VI's active area (rarely matching pure 4:3).
|
||||
// This function only deals with standard aspect ratios. For widescreen aspect ratios, multiply
|
||||
// the result by 1.33333..
|
||||
// the result by 1.33333... (the ratio between 16:9 and 4:3)
|
||||
float GetAspectRatio() const;
|
||||
|
||||
// Create a fake VI mode for a fifolog
|
||||
|
Reference in New Issue
Block a user