renderer/internal: stop using box pointers
in favor of const refs
This commit is contained in:
parent
16aeb24bc1
commit
e951011503
32 changed files with 252 additions and 264 deletions
|
|
@ -38,7 +38,7 @@ void CAlphaModifier::setResource(SP<CWpAlphaModifierSurfaceV1> resource) {
|
|||
auto box = surface->getSurfaceBoxGlobal();
|
||||
|
||||
if (box.has_value())
|
||||
g_pHyprRenderer->damageBox(&*box);
|
||||
g_pHyprRenderer->damageBox(*box);
|
||||
|
||||
if (!m_pResource)
|
||||
PROTO::alphaModifier->destroyAlphaModifier(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue