mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
background: fix typo in calcs
This commit is contained in:
parent
e1aac7e135
commit
11a6213c36
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue