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