Replace expf with std::exp, which does the same thing, and is available on

machines that don't have expf, like Solaris.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=705725
This commit is contained in:
Steve Evans 2007-08-28 12:56:02 +00:00
parent 0ad0b8c21f
commit 5227b697c3

View File

@ -54,7 +54,7 @@ void expblur( QImage &img, int radius )
the kernel is within the radius.
(Kernel extends to infinity)
*/
int alpha = (int)((1<<aprec)*(1.0f-expf(-2.3f/(radius+1.f))));
int alpha = (int)((1<<aprec)*(1.0f-std::exp(-2.3f/(radius+1.f))));
for(int row=0;row<img.height();row++)
{