File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -932,6 +932,12 @@ void DBlurEffectWidget::paintEvent(QPaintEvent *event)
932932 if (!d->blurEnabled )
933933 return ;
934934
935+ if (!d->isBehindWindowBlendMode ()) {
936+ // 此模式下是自行控制sourceImage的更新
937+ if (d->blendMode != InWidgetBlend) {
938+ updateBlurSourceImage (event->region ());
939+ }
940+ }
935941 QPainter pa (this );
936942
937943 if (d->blurRectXRadius > 0 || d->blurRectYRadius > 0 ) {
@@ -957,11 +963,6 @@ void DBlurEffectWidget::paintEvent(QPaintEvent *event)
957963 if (d->isBehindWindowBlendMode ()) {
958964 pa.setCompositionMode (QPainter::CompositionMode_Source);
959965 } else {
960- // 此模式下是自行控制sourceImage的更新
961- if (d->blendMode != InWidgetBlend) {
962- updateBlurSourceImage (event->region ());
963- }
964-
965966 if (d->customSourceImage || !d->sourceImage .isNull ()) {
966967 int radius = d->radius ;
967968 qreal device_pixel_ratio = devicePixelRatioF ();
You can’t perform that action at this time.
0 commit comments