diff --git a/effects/trackmouse.cpp b/effects/trackmouse.cpp index 25fef5cf34..1d3573d05b 100644 --- a/effects/trackmouse.cpp +++ b/effects/trackmouse.cpp @@ -20,6 +20,8 @@ along with this program. If not, see . #include "trackmouse.h" +#include + #include #include @@ -55,8 +57,10 @@ TrackMouseEffect::~TrackMouseEffect() void TrackMouseEffect::prePaintScreen( ScreenPrePaintData& data, int time ) { - if( active ) - angle = ( angle + time / 10 ) % 360; + if( active ) { + QTime t = QTime::currentTime(); + angle = ((t.second() % 4) * 90.0) + (t.msec() / 1000.0 * 90.0); + } effects->prePaintScreen( data, time ); }