forked from github_mirror/framelesshelper
Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
be2a2a48a2
commit
d4550b63bd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue