renderer: fix misused size -> transformed size

This commit is contained in:
vaxerski 2023-05-01 02:53:43 +01:00
parent ddfeebad3d
commit 11b7ce14f8

View file

@ -159,7 +159,7 @@ void CHyprOpenGLImpl::end() {
if (m_RenderData.mouseZoomFactor != 1.f) {
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.y -= ZOOMCENTER.y;
scaleBox(&monbox, m_RenderData.mouseZoomFactor);