mirror of
				https://github.com/kevinporetti/UnrealImGui.git
				synced 2025-11-03 23:33:16 +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