surface: minor fixes for last logicalDamage calc fix
This commit is contained in:
parent
e4790e3f8e
commit
1763566308
2 changed files with 7 additions and 5 deletions
|
|
@ -57,10 +57,10 @@ CRegion CWLSurface::logicalDamage() const {
|
|||
damage.transform(m_pWLRSurface->current.transform, m_pWLRSurface->current.buffer_width, m_pWLRSurface->current.buffer_height);
|
||||
damage.scale(1.0 / m_pWLRSurface->current.scale);
|
||||
|
||||
const auto VPSIZE = getViewporterCorrectedSize() / m_pWLRSurface->current.scale;
|
||||
const auto VPSIZE = getViewporterCorrectedSize();
|
||||
const auto CORRECTVEC = correctSmallVec();
|
||||
|
||||
damage.scale({VPSIZE.x / m_pWLRSurface->current.width, VPSIZE.y / m_pWLRSurface->current.height});
|
||||
damage.scale({VPSIZE.x / m_pWLRSurface->current.buffer_width, VPSIZE.y / m_pWLRSurface->current.buffer_height});
|
||||
damage.translate(CORRECTVEC);
|
||||
|
||||
return damage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue