diff options
author | Vaxry <[email protected]> | 2024-06-25 18:44:54 +0200 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-06-25 18:44:54 +0200 |
commit | 3ba3d20ad35f904cdafdd664b0acd1671924597a (patch) | |
tree | 82783328e4a1bc0a8c933efd605b5f975cced1aa | |
parent | 1d70962892a6e3e1cacd3663b390bbdf81426984 (diff) | |
download | Hyprland-3ba3d20ad35f904cdafdd664b0acd1671924597a.tar.gz Hyprland-3ba3d20ad35f904cdafdd664b0acd1671924597a.zip |
pointer: round position when rendering software cursors
otherwise the image gets resampled and gets blurry
-rw-r--r-- | src/managers/PointerManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/PointerManager.cpp b/src/managers/PointerManager.cpp index d3da5eff..2b34f380 100644 --- a/src/managers/PointerManager.cpp +++ b/src/managers/PointerManager.cpp @@ -576,6 +576,8 @@ void CPointerManager::renderSoftwareCursorsFor(SP<CMonitor> pMonitor, timespec* return; box.scale(pMonitor->scale); + box.x = std::round(box.x); + box.y = std::round(box.y); g_pHyprOpenGL->renderTextureWithDamage(texture, &box, &damage, 1.F); |