plugins/screenshot: Use SmoothPixmapTransform when stitching area screenshots

CCBUG: 478426
This commit is contained in:
Vlad Zahorodnii 2024-01-18 14:56:33 +00:00
parent f23e0ef05b
commit f6d9b8a0b4

View file

@ -324,6 +324,7 @@ bool ScreenShotEffect::takeScreenShot(const RenderTarget &renderTarget, const Re
screenshot->area.size() * screenshot->result.devicePixelRatio());
QPainter painter(&screenshot->result);
painter.setRenderHint(QPainter::SmoothPixmapTransform);
painter.setWindow(nativeArea);
painter.drawImage(sourceRect, snapshot);
painter.end();