Minor tweaks

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2021-03-12 09:07:48 +08:00
parent be2a2a48a2
commit d4550b63bd
1 changed files with 6 additions and 6 deletions

View File

@ -174,14 +174,14 @@ void QtAcrylicEffectHelper::paintWindowBackground(QPainter *painter, const QRegi
if (!painter || clip.isEmpty()) {
return;
}
if (!checkWindow()) {
return;
}
// TODO: should we limit it to Win32 only? Or should we do something about the
// acrylic brush instead?
if (Utilities::disableExtraProcessingForBlur()) {
return;
}
if (!checkWindow()) {
return;
}
painter->save();
painter->setClipRegion(clip);
paintBackground(painter, clip.boundingRect());
@ -194,14 +194,14 @@ void QtAcrylicEffectHelper::paintWindowBackground(QPainter *painter, const QRect
if (!painter || !rect.isValid()) {
return;
}
if (!checkWindow()) {
return;
}
// TODO: should we limit it to Win32 only? Or should we do something about the
// acrylic brush instead?
if (Utilities::disableExtraProcessingForBlur()) {
return;
}
if (!checkWindow()) {
return;
}
painter->save();
painter->setClipRegion({rect});
paintBackground(painter, rect);