mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-14 08:24:57 +00:00
bootmanager: Remove old path
Causes issues with different selected aspect ratios in graphics.
This commit is contained in:
parent
95409c6859
commit
76a03e99b6
1 changed files with 3 additions and 8 deletions
|
@ -918,7 +918,6 @@ void GRenderWindow::ReleaseRenderTarget() {
|
||||||
|
|
||||||
void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) {
|
void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) {
|
||||||
auto& renderer = system.Renderer();
|
auto& renderer = system.Renderer();
|
||||||
const f32 res_scale = Settings::values.resolution_info.up_factor;
|
|
||||||
|
|
||||||
if (renderer.IsScreenshotPending()) {
|
if (renderer.IsScreenshotPending()) {
|
||||||
LOG_WARNING(Render,
|
LOG_WARNING(Render,
|
||||||
|
@ -926,15 +925,11 @@ void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Layout::FramebufferLayout layout{[res_scale]() {
|
const Layout::FramebufferLayout layout{[]() {
|
||||||
if (UISettings::values.screenshot_height.GetValue() == 0 &&
|
|
||||||
UISettings::values.screenshot_aspect_ratio.GetValue() ==
|
|
||||||
Settings::ScreenshotAspectRatio::Auto) {
|
|
||||||
return Layout::FrameLayoutFromResolutionScale(res_scale);
|
|
||||||
}
|
|
||||||
u32 height = UISettings::values.screenshot_height.GetValue();
|
u32 height = UISettings::values.screenshot_height.GetValue();
|
||||||
if (height == 0) {
|
if (height == 0) {
|
||||||
height = Settings::values.use_docked_mode.GetValue() ? 1080 : 720;
|
height = Settings::values.use_docked_mode.GetValue() ? Layout::ScreenDocked::Height
|
||||||
|
: Layout::ScreenUndocked::Height;
|
||||||
height *= Settings::values.resolution_info.up_factor;
|
height *= Settings::values.resolution_info.up_factor;
|
||||||
}
|
}
|
||||||
const u32 width = UISettings::CalculateWidth(
|
const u32 width = UISettings::CalculateWidth(
|
||||||
|
|
Loading…
Reference in a new issue