Fixed bug squaring the non-curved base factor in the DPI scale.

This commit is contained in:
Sebastian 2020-06-28 17:35:41 +01:00
parent d55af9db11
commit b94bb7b5ef

View File

@ -30,7 +30,7 @@ FImGuiDPIScaleInfo::FImGuiDPIScaleInfo()
float FImGuiDPIScaleInfo::CalculateResolutionBasedScale() const float FImGuiDPIScaleInfo::CalculateResolutionBasedScale() const
{ {
float ResolutionBasedScale = Scale; float ResolutionBasedScale = 1.f;
if (bScaleWithCurve && GEngine && GEngine->GameUserSettings) if (bScaleWithCurve && GEngine && GEngine->GameUserSettings)
{ {
if (const FRichCurve* Curve = DPICurve.GetRichCurveConst()) if (const FRichCurve* Curve = DPICurve.GetRichCurveConst())