mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
update
This commit is contained in:
parent
1e9bd0fd05
commit
fc99c19479
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user