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);