From 11a6213c36261fb63f2c51764f5042c5e58dfa0d Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 20 Feb 2024 16:02:40 +0000 Subject: [PATCH] background: fix typo in calcs --- src/renderer/widgets/Background.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/widgets/Background.cpp b/src/renderer/widgets/Background.cpp index f7b323e..fab24d3 100644 --- a/src/renderer/widgets/Background.cpp +++ b/src/renderer/widgets/Background.cpp @@ -25,7 +25,7 @@ bool CBackground::draw(const SRenderData& data) { Vector2D size = asset->texture.m_vSize; float scaleX = viewport.x / asset->texture.m_vSize.x; - float scaleY = viewport.y / asset->texture.m_vSize.x; + float scaleY = viewport.y / asset->texture.m_vSize.y; texbox.w *= std::max(scaleX, scaleY); texbox.h *= std::max(scaleX, scaleY);