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
icc-effect-5.14.5
Martin Gräßlin 2009-04-27 17:36:20 +00:00
parent 815c7c25a0
commit 1b728c3337
1 changed files with 3 additions and 1 deletions

View File

@ -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