From 1b728c33376b4b334e49f7a6682443bfe408a0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 27 Apr 2009 17:36:20 +0000 Subject: [PATCH] Trigger a full repaint when mouse moves in magnifier effect. This is a slight overhead but fast mouse movements caused artefacts as some change events were lost. BUG: 187658 svn path=/trunk/KDE/kdebase/workspace/; revision=959982 --- effects/magnifier/magnifier.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/effects/magnifier/magnifier.cpp b/effects/magnifier/magnifier.cpp index c64737b789..8bd574643d 100644 --- a/effects/magnifier/magnifier.cpp +++ b/effects/magnifier/magnifier.cpp @@ -179,7 +179,9 @@ void MagnifierEffect::mouseChanged( const QPoint& pos, const QPoint& old, Qt::MouseButtons, Qt::MouseButtons, Qt::KeyboardModifiers, Qt::KeyboardModifiers ) { if( pos != old && zoom != 1 ) - effects->addRepaint( magnifierArea( old ).adjusted( -FRAME_WIDTH, -FRAME_WIDTH, FRAME_WIDTH, FRAME_WIDTH )); + // need full repaint as we might lose some change events on fast mouse movements + // see Bug 187658 + effects->addRepaintFull(); } } // namespace