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:
Vlad Zahorodnii 2024-03-26 18:59:57 +02:00
parent d1fdb69946
commit 8d3c06a178

View file

@ -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);