mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 08:03:21 +02:00
parent
461f9a3fd2
commit
dbef8c6fb6
6 changed files with 37 additions and 37 deletions
|
@ -44,7 +44,7 @@ double CShake::update(Vector2D pos) {
|
|||
|
||||
static auto* const* PIPC = (Hyprlang::INT* const*) getConfig(CONFIG_SHAKE_IPC);
|
||||
|
||||
int max = std::max(1, (int)(g_pHyprRenderer->m_pMostHzMonitor->refreshRate)); // 1s worth of history, avoiding divide by 0
|
||||
int max = std::max(1, (int)(g_pHyprRenderer->m_pMostHzMonitor->m_refreshRate)); // 1s worth of history, avoiding divide by 0
|
||||
samples.resize(max);
|
||||
samples_distance.resize(max);
|
||||
|
||||
|
@ -73,7 +73,7 @@ double CShake::update(Vector2D pos) {
|
|||
// if diagonal sufficiently large and over threshold
|
||||
double amount = (trail / diagonal) - **PTHRESHOLD;
|
||||
if (diagonal > 100 && amount > 0) {
|
||||
float delta = 1.F / g_pHyprRenderer->m_pMostHzMonitor->refreshRate;
|
||||
float delta = 1.F / g_pHyprRenderer->m_pMostHzMonitor->m_refreshRate;
|
||||
|
||||
float next = this->zoom->goal();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue