refactor: Use new hyprutils casts (#11377)
This commit is contained in:
parent
aa6a78f0a4
commit
beee22a95e
116 changed files with 715 additions and 696 deletions
|
|
@ -27,7 +27,7 @@ void CAlphaModifier::setResource(UP<CWpAlphaModifierSurfaceV1>&& resource) {
|
|||
return;
|
||||
}
|
||||
|
||||
m_alpha = alpha / (float)UINT32_MAX;
|
||||
m_alpha = alpha / sc<float>(UINT32_MAX);
|
||||
});
|
||||
|
||||
m_listeners.surfaceCommitted = m_surface->m_events.commit.listen([this] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue