aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-24 13:47:36 +0000
committerVaxry <[email protected]>2023-11-24 13:47:36 +0000
commitd79cf0afe26fd6503a47c17a524d45742bf2461a (patch)
tree3eb4f5888e9838903ce712c417e0c33fc92a0459
parent334d0ae31b9b192b6d8c35a40bc83f9076d22b9d (diff)
downloadHyprland-d79cf0afe26fd6503a47c17a524d45742bf2461a.tar.gz
Hyprland-d79cf0afe26fd6503a47c17a524d45742bf2461a.zip
renderer: fix software cursors on nvidia
fixes #3926
-rw-r--r--src/render/Renderer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 128f36ef..c39f6f74 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -2199,9 +2199,10 @@ void CHyprRenderer::renderSoftwareCursors(CMonitor* pMonitor, const CRegion& dam
if (!cursor->texture)
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);
}
}