mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-21 00:53:22 +02:00
bootmanager: Consider the default resolution
This commit is contained in:
parent
d9275b7757
commit
bc5ec10498
@ -932,7 +932,11 @@ void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) {
|
||||
Settings::ScreenshotAspectRatio::Auto) {
|
||||
return Layout::FrameLayoutFromResolutionScale(res_scale);
|
||||
}
|
||||
const u32 height = UISettings::values.screenshot_height.GetValue();
|
||||
u32 height = UISettings::values.screenshot_height.GetValue();
|
||||
if (height == 0) {
|
||||
height = Settings::values.use_docked_mode.GetValue() ? 1080 : 720;
|
||||
height *= Settings::values.resolution_info.up_factor;
|
||||
}
|
||||
const u32 width = UISettings::CalculateWidth(
|
||||
height, UISettings::ConvertScreenshotRatioToRatio(
|
||||
UISettings::values.screenshot_aspect_ratio.GetValue()));
|
||||
|
Loading…
Reference in New Issue
Block a user