plugins/screencast: Simplify damage calculation in region screen cast source
Whether the output is rotated should be irrelevant. The region screen cast source handles scrapping fairly well blitting from rotated outputs.
This commit is contained in:
parent
d1fdb69946
commit
8d3c06a178
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ void RegionScreenCastSource::update(Output *output, const QRegion &damage)
|
|||
{
|
||||
blit(output);
|
||||
|
||||
const QRegion effectiveDamage = (output->pixelSize() != output->modeSize() ? output->geometry() : damage)
|
||||
const QRegion effectiveDamage = damage
|
||||
.translated(-m_region.topLeft())
|
||||
.intersected(m_region);
|
||||
const QRegion nativeDamage = scaleRegion(effectiveDamage, m_scale);
|
||||
|
|
Loading…
Reference in a new issue