mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 20:45:59 +01:00
pointer: round position when rendering software cursors
otherwise the image gets resampled and gets blurry
This commit is contained in:
parent
1d70962892
commit
3ba3d20ad3
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue