From 95c5449a754601bc235a85ce695f778880f40456 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 26 Jan 2022 18:30:55 -0500 Subject: [PATCH] - silence some warning spam in `textures.h` --- src/common/textures/textures.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/textures/textures.h b/src/common/textures/textures.h index 78045f7706..2bab841d79 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: