mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-04-28 21:37:58 +03:00
Fix gameplay UI scaling at narrow aspect ratios.
This commit is contained in:
parent
1efb4943b3
commit
e8d36998a5
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ void AspectRatioPatches::ComputeOffsets()
|
|||
if (g_aspectRatio < WIDE_ASPECT_RATIO)
|
||||
{
|
||||
// interpolate to original 4:3 scale
|
||||
float steamDeckScale = 1.0f / g_aspectRatioScale;
|
||||
float steamDeckScale = g_aspectRatio / WIDE_ASPECT_RATIO;
|
||||
float narrowScale = ComputeScale(NARROW_ASPECT_RATIO);
|
||||
|
||||
float lerpFactor = std::clamp((g_aspectRatio - NARROW_ASPECT_RATIO) / (STEAM_DECK_ASPECT_RATIO - NARROW_ASPECT_RATIO), 0.0f, 1.0f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue