From fc99c1947981dc0ee148f170c2f959f8a4b9af38 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Fri, 18 Aug 2023 09:30:56 +0800 Subject: [PATCH] update --- src/Screenshot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Screenshot.cpp b/src/Screenshot.cpp index 2eb56608..ca7f05bb 100644 --- a/src/Screenshot.cpp +++ b/src/Screenshot.cpp @@ -44,10 +44,10 @@ ScreenshotBackground::ScreenshotBackground(QQuickItem* parent) : QQuickPaintedIt void ScreenshotBackground::paint(QPainter* painter) { painter->save(); - _sourcePixmap = QPixmap(QSize(_desktopGeometry.width(),_desktopGeometry.height())); + _sourcePixmap = QPixmap(QSize(_desktopPixmap.width(),_desktopPixmap.height())); QPainter p(&_sourcePixmap); p.drawPixmap(_desktopGeometry,_desktopPixmap); - painter->drawPixmap(_desktopGeometry,_sourcePixmap); + painter->drawPixmap(_desktopGeometry,_desktopPixmap); painter->restore(); }