render: refactor class member vars (#10292)
* render: refactor class member vars * render: fix clang format
This commit is contained in:
parent
c7eb141098
commit
997fefbc11
63 changed files with 1307 additions and 1321 deletions
|
|
@ -495,7 +495,7 @@ void CWLSurfaceResource::commitState(SSurfaceState& state) {
|
|||
}
|
||||
|
||||
if (m_current.texture)
|
||||
m_current.texture->m_eTransform = wlTransformToHyprutils(m_current.transform);
|
||||
m_current.texture->m_transform = wlTransformToHyprutils(m_current.transform);
|
||||
|
||||
if (m_role->role() == SURFACE_ROLE_SUBSURFACE) {
|
||||
auto subsurface = ((CSubsurfaceRole*)m_role.get())->m_subsurface.lock();
|
||||
|
|
|
|||
|
|
@ -814,7 +814,7 @@ void CWLDataDeviceProtocol::renderDND(PHLMONITOR pMonitor, const Time::steady_tp
|
|||
CTexPassElement::SRenderData data;
|
||||
data.tex = m_dnd.dndSurface->m_current.texture;
|
||||
data.box = box;
|
||||
g_pHyprRenderer->m_sRenderPass.add(makeShared<CTexPassElement>(data));
|
||||
g_pHyprRenderer->m_renderPass.add(makeShared<CTexPassElement>(data));
|
||||
|
||||
CBox damageBox = CBox{surfacePos, m_dnd.dndSurface->m_current.size}.expand(5);
|
||||
g_pHyprRenderer->damageBox(damageBox);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue