diff --git a/src/common/textures/textures.h b/src/common/textures/textures.h index 78045f770..2bab841d7 100644 --- a/src/common/textures/textures.h +++ b/src/common/textures/textures.h @@ -320,7 +320,7 @@ public: void NeedUpdate() { bNeedsUpdate = true; } void SetUpdated(bool rendertype) { bNeedsUpdate = false; bFirstUpdate = false; bLastUpdateType = rendertype; } - void SetAspectRatio(double aspectScale, bool useTextureRatio) { aspectRatio = aspectScale * (useTextureRatio? ((float)Width / Height) : 1); } + void SetAspectRatio(double aspectScale, bool useTextureRatio) { aspectRatio = (float)aspectScale * (useTextureRatio? ((float)Width / Height) : 1); } protected: