mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-10-30 05:51:44 +00: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
@ -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 New Issue
Block a user