diff --git a/effects/showfps.cpp b/effects/showfps.cpp index 8d1bab4cf5..256c077da6 100644 --- a/effects/showfps.cpp +++ b/effects/showfps.cpp @@ -309,7 +309,7 @@ void ShowFpsEffect::paintDrawSizeGraph(int x, int y) int h = 0; if( value > 0) { - h = (int)(( log10( value ) - min_pixels_log ) * drawscale ); + h = (int)(( log10( (double)value ) - min_pixels_log ) * drawscale ); h = qMin( qMax( 0, h ) + minh, MAX_TIME ); } drawvalues.append( h );