mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-20 00:23:22 +02:00
parent
a3261996b9
commit
1aabd346eb
3 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@ SModeResult CModeStretch::update(Vector2D pos) {
|
|||
// create samples array
|
||||
int max = std::max(1, (int)(g_pHyprRenderer->m_mostHzMonitor->m_refreshRate / 10)); // 100ms worth of history, avoiding divide by 0
|
||||
samples.resize(max, pos);
|
||||
samples_index = std::min(samples_index, max - 1);
|
||||
|
||||
// capture current sample
|
||||
samples[samples_index] = pos;
|
||||
|
|
|
@ -17,6 +17,7 @@ SModeResult CModeTilt::update(Vector2D pos) {
|
|||
// create samples array
|
||||
int max = std::max(1, (int)(g_pHyprRenderer->m_mostHzMonitor->m_refreshRate / 10)); // 100ms worth of history, avoiding divide by 0
|
||||
samples.resize(max, pos);
|
||||
samples_index = std::min(samples_index, max - 1);
|
||||
|
||||
// capture current sample
|
||||
samples[samples_index] = pos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue