mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 10:45:58 +01:00
renderer: fix misused size -> transformed size
This commit is contained in:
parent
ddfeebad3d
commit
11b7ce14f8
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ void CHyprOpenGLImpl::end() {
|
||||||
|
|
||||||
if (m_RenderData.mouseZoomFactor != 1.f) {
|
if (m_RenderData.mouseZoomFactor != 1.f) {
|
||||||
const auto ZOOMCENTER =
|
const auto ZOOMCENTER =
|
||||||
m_RenderData.mouseZoomUseMouse ? g_pInputManager->getMouseCoordsInternal() - m_RenderData.pMonitor->vecPosition : m_RenderData.pMonitor->vecSize / 2.f;
|
m_RenderData.mouseZoomUseMouse ? g_pInputManager->getMouseCoordsInternal() - m_RenderData.pMonitor->vecPosition : m_RenderData.pMonitor->vecTransformedSize / 2.f;
|
||||||
monbox.x -= ZOOMCENTER.x;
|
monbox.x -= ZOOMCENTER.x;
|
||||||
monbox.y -= ZOOMCENTER.y;
|
monbox.y -= ZOOMCENTER.y;
|
||||||
scaleBox(&monbox, m_RenderData.mouseZoomFactor);
|
scaleBox(&monbox, m_RenderData.mouseZoomFactor);
|
||||||
|
|
Loading…
Reference in a new issue