mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 01:45:47 +00:00
bootmanager: Consider the default resolution
This commit is contained in:
parent
5c5eea2336
commit
24fa548bbd
1 changed files with 5 additions and 1 deletions
|
@ -932,7 +932,11 @@ void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) {
|
||||||
Settings::ScreenshotAspectRatio::Auto) {
|
Settings::ScreenshotAspectRatio::Auto) {
|
||||||
return Layout::FrameLayoutFromResolutionScale(res_scale);
|
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(
|
const u32 width = UISettings::CalculateWidth(
|
||||||
height, UISettings::ConvertScreenshotRatioToRatio(
|
height, UISettings::ConvertScreenshotRatioToRatio(
|
||||||
UISettings::values.screenshot_aspect_ratio.GetValue()));
|
UISettings::values.screenshot_aspect_ratio.GetValue()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue