From 70f5fd34bb81b44f1ae92a1c7d4dc2cdb0b75b31 Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Fri, 14 Sep 2007 13:40:26 +0000 Subject: [PATCH] Repaint the frame as well - fixes a bug where frame would stay on screen after turning off magnifier svn path=/trunk/KDE/kdebase/workspace/; revision=712470 --- effects/magnifier.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/effects/magnifier.cpp b/effects/magnifier.cpp index d8c9e6f5c8..58bacdfc5e 100644 --- a/effects/magnifier.cpp +++ b/effects/magnifier.cpp @@ -106,7 +106,10 @@ void MagnifierEffect::paintScreen( int mask, QRegion region, ScreenPaintData& da void MagnifierEffect::postPaintScreen() { if( zoom != target_zoom ) - effects->addRepaint( magnifierArea()); + { + QRect framedarea = magnifierArea().adjusted( -FRAME_WIDTH, -FRAME_WIDTH, FRAME_WIDTH, FRAME_WIDTH ); + effects->addRepaint( framedarea ); + } effects->postPaintScreen(); }