mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-18 08:20:32 +00:00
Fixed bug squaring the non-curved base factor in the DPI scale.
This commit is contained in:
parent
d55af9db11
commit
b94bb7b5ef
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user