Skip to content

Commit

Permalink
SideAlignHUD: Fix scaling algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
nipkownix committed Jul 29, 2022
1 parent a149a24 commit 3c5e114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dllmain/AspectRatioTweaks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void Init_AspectRatioTweaks()

if ((pConfig->bSideAlignHUD && bIsUltrawide) || (pConfig->bRemove16by10BlackBars && bIs16by10))
{
float fHudPosOffset = 0.25f * (fGameWidth - (fDefaultEngineAspectRatio * fGameHeight));
float fHudPosOffset = ((360.0f * fGameDisplayAspectRatio) - 640.0f) / 2.0f;

*fCurHudPosX = fDefaultHudPosX + fHudPosOffset;
}
Expand Down
2 changes: 1 addition & 1 deletion dllmain/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define APP_MAJOR 1
#define APP_MINOR 7
#define APP_BUILDNUMBER 7
#define APP_REVISION 4
#define APP_REVISION 5
#define APP_COMPANYNAME "nipkow"
#define APP_DESCRPTION "Fixes and tweaks for the UHD port of Resident Evil 4"
#define APP_COPYRIGHT "Copyright (C) 2021-2022 nipkow"
Expand Down

0 comments on commit 3c5e114

Please sign in to comment.