mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 05:15:39 +03:00
renderer: fix misused size -> transformed size
This commit is contained in:
parent
ddfeebad3d
commit
11b7ce14f8
@ -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 New Issue
Block a user