mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 10:19:01 +00:00
Video: split frame dumping settings into 3 resolution dumping modes
also polish aspect ratio related code for clarity
This commit is contained in:
parent
1f34adf216
commit
72db62e178
8 changed files with 90 additions and 29 deletions
|
@ -107,10 +107,13 @@ private:
|
|||
|
||||
void OnBackBufferSizeChanged();
|
||||
|
||||
// Scales a raw XFB resolution to the target (display) aspect ratio,
|
||||
// also accounting for crop and other minor adjustments
|
||||
std::tuple<int, int> CalculateOutputDimensions(int width, int height,
|
||||
bool allow_stretch = true) const;
|
||||
std::tuple<float, float> ApplyStandardAspectCrop(float width, float height,
|
||||
bool allow_stretch = true) const;
|
||||
// Scales a raw XFB resolution to the target (display) aspect ratio
|
||||
std::tuple<float, float> ScaleToDisplayAspectRatio(int width, int height,
|
||||
bool allow_stretch = true) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue