From 07a9ca62466edf58a251a3d9d1470f8d502ffee0 Mon Sep 17 00:00:00 2001 From: Virt <41426325+VirtCode@users.noreply.github.com> Date: Tue, 8 Apr 2025 12:52:50 +0200 Subject: [PATCH] fix: use renamed members like hl ref https://github.com/hyprwm/Hyprland/commit/b15c2bfff6941bd2072eade13177433d7ab58a00 --- src/cursor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cursor.cpp b/src/cursor.cpp index 741a822..1b5a652 100644 --- a/src/cursor.cpp +++ b/src/cursor.cpp @@ -33,8 +33,8 @@ void tickRaw(SP self, void* data) { if (isEnabled()) g_pDynamicCursors->onTick(g_pPointerManager.get()); - const int TIMEOUT = g_pHyprRenderer->m_pMostHzMonitor && g_pHyprRenderer->m_pMostHzMonitor->refreshRate > 0 - ? 1000.0 / g_pHyprRenderer->m_pMostHzMonitor->refreshRate + const int TIMEOUT = g_pHyprRenderer->m_pMostHzMonitor && g_pHyprRenderer->m_pMostHzMonitor->refreshRate > 0 + ? 1000.0 / g_pHyprRenderer->m_pMostHzMonitor->refreshRate : 16; self->updateTimeout(std::chrono::milliseconds(TIMEOUT)); } @@ -97,8 +97,8 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP pMo auto buf = highres.getBuffer(); // we calculate a more accurate hotspot location if we have bigger shapes - box.x -= (buf->hotspot.x / buf->size.x) * pointers->currentCursorImage.size.x * zoom; - box.y -= (buf->hotspot.y / buf->size.y) * pointers->currentCursorImage.size.y * zoom; + box.x -= (buf->m_hotspot.x / buf->size.x) * pointers->currentCursorImage.size.x * zoom; + box.y -= (buf->m_hotspot.y / buf->size.y) * pointers->currentCursorImage.size.y * zoom; // only use nearest-neighbour if magnifying over size nearest = **PNEAREST == 2 && pointers->currentCursorImage.size.x * zoom > buf->size.x;