pointer: round position when rendering software cursors

otherwise the image gets resampled and gets blurry
This commit is contained in:
Vaxry 2024-06-25 18:44:54 +02:00
parent 1d70962892
commit 3ba3d20ad3

View File

@ -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);