mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #1227] [MERGED] GPU: Add auto aspect ratio and various fixes #396
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stenzek/duckstation/pull/1227
Author: @ggrtk
Created: 12/15/2020
Status: ✅ Merged
Merged: 12/17/2020
Merged by: @stenzek
Base:
master← Head:auto-aspect-ratio📝 Commits (7)
b8abf2dGPU: Don't apply display offsets when not cropping78e42d9GPU: Clean up CRTC variable naming866cbdcGPU: Prevent potential overflow in CRTC visible area calculation1c8a896GPU: Wrap display VRAM coordinates properly2c76ad2GPU: Fix operator warningb4fb1e2Settings: Remove unused variablesde8f03bGPU: Add auto (game native) aspect ratio📊 Changes
9 files changed (+147 additions, -78 deletions)
View changed files
📝
src/core/gpu.cpp(+104 -50)📝
src/core/gpu.h(+27 -12)📝
src/core/gte.cpp(+2 -0)📝
src/core/host_display.cpp(+0 -1)📝
src/core/settings.cpp(+5 -4)📝
src/core/settings.h(+2 -6)📝
src/core/types.h(+1 -0)📝
src/duckstation-libretro/libretro_host_interface.cpp(+3 -2)📝
src/duckstation-qt/displaysettingswidget.cpp(+3 -3)📄 Description
Auto mode width is roughly 2% slimmer than 4:3 mode due to using GPU ticks/lines for calculation. We could probably fudge the numbers a bit to make it closer to forcing 4:3, but analog specs aren't super precise anyways so I won't bother with it for the time being.
Should resolve #1139, #1138, #654.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.