renderer/internal: stop using box pointers

in favor of const refs
This commit is contained in:
Vaxry
2025-01-26 15:05:34 +00:00
parent 16aeb24bc1
commit e951011503
32 changed files with 252 additions and 264 deletions

View File

@@ -26,7 +26,7 @@ CHyprError::CHyprError() {
return;
if (m_fFadeOpacity->isBeingAnimated() || m_bMonitorChanged)
g_pHyprRenderer->damageBox(&m_bDamageBox);
g_pHyprRenderer->damageBox(m_bDamageBox);
});
m_pTexture = makeShared<CTexture>();
@@ -203,7 +203,7 @@ void CHyprError::draw() {
m_bDamageBox.y = (int)PMONITOR->vecPosition.y;
if (m_fFadeOpacity->isBeingAnimated() || m_bMonitorChanged)
g_pHyprRenderer->damageBox(&m_bDamageBox);
g_pHyprRenderer->damageBox(m_bDamageBox);
m_bMonitorChanged = false;