mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
fix fix
This commit is contained in:
parent
03e8cb17ed
commit
97ca30bc38
4 changed files with 2 additions and 8 deletions
|
@ -127,8 +127,6 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP<CMonitor> pMo
|
||||||
CCursorPassElement::SRenderData data;
|
CCursorPassElement::SRenderData data;
|
||||||
data.tex = texture;
|
data.tex = texture;
|
||||||
data.box = box;
|
data.box = box;
|
||||||
data.syncTimeline = pointers->currentCursorImage.waitTimeline;
|
|
||||||
data.syncPoint = pointers->currentCursorImage.waitPoint;
|
|
||||||
data.hotspot = pointers->currentCursorImage.hotspot * state->monitor->scale * zoom;
|
data.hotspot = pointers->currentCursorImage.hotspot * state->monitor->scale * zoom;
|
||||||
data.nearest = nearest;
|
data.nearest = nearest;
|
||||||
data.stretchAngle = resultShown.stretch.angle;
|
data.stretchAngle = resultShown.stretch.angle;
|
||||||
|
@ -265,7 +263,7 @@ SP<Aquamarine::IBuffer> CDynamicCursors::renderHardware(CPointerManager* pointer
|
||||||
xbox.rot = resultShown.rotation;
|
xbox.rot = resultShown.rotation;
|
||||||
|
|
||||||
// use our custom draw function
|
// use our custom draw function
|
||||||
renderCursorTextureInternalWithDamage(texture, &xbox, damage, 1.F, pointers->currentCursorImage.waitTimeline, pointers->currentCursorImage.waitPoint, pointers->currentCursorImage.hotspot * state->monitor->scale * zoom, zoom > 1 && **PNEAREST, resultShown.stretch.angle, resultShown.stretch.magnitude);
|
renderCursorTextureInternalWithDamage(texture, &xbox, damage, 1.F, pointers->currentCursorImage.hotspot * state->monitor->scale * zoom, zoom > 1 && **PNEAREST, resultShown.stretch.angle, resultShown.stretch.magnitude);
|
||||||
|
|
||||||
g_pHyprOpenGL->end();
|
g_pHyprOpenGL->end();
|
||||||
glFlush();
|
glFlush();
|
||||||
|
|
|
@ -17,8 +17,6 @@ void CCursorPassElement::draw(const CRegion& damage) {
|
||||||
&data.box,
|
&data.box,
|
||||||
data.damage.empty() ? damage : data.damage,
|
data.damage.empty() ? damage : data.damage,
|
||||||
1.F,
|
1.F,
|
||||||
data.syncTimeline,
|
|
||||||
data.syncPoint,
|
|
||||||
data.hotspot,
|
data.hotspot,
|
||||||
data.nearest,
|
data.nearest,
|
||||||
data.stretchAngle,
|
data.stretchAngle,
|
||||||
|
|
|
@ -13,8 +13,6 @@ class CCursorPassElement : public IPassElement {
|
||||||
SP<CTexture> tex;
|
SP<CTexture> tex;
|
||||||
CBox box;
|
CBox box;
|
||||||
CRegion damage;
|
CRegion damage;
|
||||||
SP<CSyncTimeline> syncTimeline;
|
|
||||||
int64_t syncPoint = 0;
|
|
||||||
|
|
||||||
Vector2D hotspot;
|
Vector2D hotspot;
|
||||||
bool nearest;
|
bool nearest;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <hyprland/src/render/OpenGL.hpp>
|
#include <hyprland/src/render/OpenGL.hpp>
|
||||||
#include <hyprland/src/helpers/math/Math.hpp>
|
#include <hyprland/src/helpers/math/Math.hpp>
|
||||||
|
|
||||||
void renderCursorTextureInternalWithDamage(SP<CTexture> tex, CBox* pBox, const CRegion& damage, float alpha, SP<CSyncTimeline> waitTimeline, uint64_t waitPoint, Vector2D hotspot, bool nearest, float stretchAngle, Vector2D stretch);
|
void renderCursorTextureInternalWithDamage(SP<CTexture> tex, CBox* pBox, const CRegion& damage, float alpha, Vector2D hotspot, bool nearest, float stretchAngle, Vector2D stretch);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue