mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 06:05:59 +01:00
parent
334d0ae31b
commit
d79cf0afe2
1 changed files with 3 additions and 2 deletions
|
@ -2199,9 +2199,10 @@ void CHyprRenderer::renderSoftwareCursors(CMonitor* pMonitor, const CRegion& dam
|
||||||
if (!cursor->texture)
|
if (!cursor->texture)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
CBox cursorBox = CBox{CURSORPOS.x, CURSORPOS.y, cursor->width, cursor->height}.translate({-cursor->hotspot_x, -cursor->hotspot_y});
|
CBox cursorBox = CBox{CURSORPOS.x, CURSORPOS.y, cursor->width, cursor->height}.translate({-cursor->hotspot_x, -cursor->hotspot_y}).scale(pMonitor->scale);
|
||||||
|
|
||||||
g_pHyprOpenGL->renderTexturePrimitive(cursor->texture, &cursorBox);
|
// TODO: NVIDIA doesn't like if we use renderTexturePrimitive here. Why?
|
||||||
|
g_pHyprOpenGL->renderTexture(cursor->texture, &cursorBox, 1.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue