summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/theme/ogfxeffect.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/styles/theme/ogfxeffect.cpp b/noncore/styles/theme/ogfxeffect.cpp
index a991728..55f3c1f 100644
--- a/noncore/styles/theme/ogfxeffect.cpp
+++ b/noncore/styles/theme/ogfxeffect.cpp
@@ -12,2 +12,4 @@
+#include <qpe/qmath.h>
+
#include "ogfxeffect.h"
@@ -23,3 +25,3 @@
QPixmap& OGfxEffect::gradient(QPixmap &pixmap, const QColor &ca,
- const QColor &cb, GradientType eff, int ncols)
+ const QColor &cb, GradientType eff, int /*ncols*/)
{
@@ -93,3 +95,3 @@ QPixmap& OGfxEffect::blend(QPixmap &pixmap, float initial_intensity,
const QColor &bgnd, GradientType eff,
- bool anti_dir, int ncols)
+ bool anti_dir, int /*ncols*/)
{
@@ -98,4 +100,2 @@ QPixmap& OGfxEffect::blend(QPixmap &pixmap, float initial_intensity,
- unsigned int tmp;
-
if ( pixmap. depth ( ) <= 8 )
@@ -220,3 +220,3 @@ QImage& OGfxEffect::blend(QImage &image, float initial_intensity,
else
- intensity = initial_intensity + sqrt(xvar * xvar + yvar * yvar);
+ intensity = initial_intensity + qSqrt(xvar * xvar + yvar * yvar);
if (intensity > 1) intensity = 1;
@@ -264,3 +264,3 @@ QImage& OGfxEffect::blend(QImage &image, float initial_intensity,
else
- intensity = initial_intensity + sqrt(xvar * xvar + yvar * yvar);
+ intensity = initial_intensity + qSqrt(xvar * xvar + yvar * yvar);
if (intensity > 1) intensity = 1;