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.
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent d1fdb69946
commit 8d3c06a178
  1. 2
      src/plugins/screencast/regionscreencastsource.cpp

@ -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…
Cancel
Save