summaryrefslogtreecommitdiff
path: root/noncore/styles/theme/ogfxeffect.cpp
authorsandman <sandman>2002-07-01 23:38:26 (UTC)
committer sandman <sandman>2002-07-01 23:38:26 (UTC)
commit7191d788415f190680c8a699b2b7bb88ddf28917 (patch) (unidiff)
tree4b1f4c3327d7265da5552d332261ff6c4bf773ec /noncore/styles/theme/ogfxeffect.cpp
parent667202e7e7a39ed6cbe09857c567c4acd246ab0e (diff)
downloadopie-7191d788415f190680c8a699b2b7bb88ddf28917.zip
opie-7191d788415f190680c8a699b2b7bb88ddf28917.tar.gz
opie-7191d788415f190680c8a699b2b7bb88ddf28917.tar.bz2
- fixed some "unused variable" warnings from the KDE code
- replaced sqrt() calls QPE's qSqrt()
Diffstat (limited to 'noncore/styles/theme/ogfxeffect.cpp') (more/less context) (show 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 @@
12 12
13#include <qpe/qmath.h>
14
13#include "ogfxeffect.h" 15#include "ogfxeffect.h"
@@ -23,3 +25,3 @@
23QPixmap& OGfxEffect::gradient(QPixmap &pixmap, const QColor &ca, 25QPixmap& OGfxEffect::gradient(QPixmap &pixmap, const QColor &ca,
24 const QColor &cb, GradientType eff, int ncols) 26 const QColor &cb, GradientType eff, int /*ncols*/)
25{ 27{
@@ -93,3 +95,3 @@ QPixmap& OGfxEffect::blend(QPixmap &pixmap, float initial_intensity,
93 const QColor &bgnd, GradientType eff, 95 const QColor &bgnd, GradientType eff,
94 bool anti_dir, int ncols) 96 bool anti_dir, int /*ncols*/)
95{ 97{
@@ -98,4 +100,2 @@ QPixmap& OGfxEffect::blend(QPixmap &pixmap, float initial_intensity,
98 100
99 unsigned int tmp;
100
101 if ( pixmap. depth ( ) <= 8 ) 101 if ( pixmap. depth ( ) <= 8 )
@@ -220,3 +220,3 @@ QImage& OGfxEffect::blend(QImage &image, float initial_intensity,
220 else 220 else
221 intensity = initial_intensity + sqrt(xvar * xvar + yvar * yvar); 221 intensity = initial_intensity + qSqrt(xvar * xvar + yvar * yvar);
222 if (intensity > 1) intensity = 1; 222 if (intensity > 1) intensity = 1;
@@ -264,3 +264,3 @@ QImage& OGfxEffect::blend(QImage &image, float initial_intensity,
264 else 264 else
265 intensity = initial_intensity + sqrt(xvar * xvar + yvar * yvar); 265 intensity = initial_intensity + qSqrt(xvar * xvar + yvar * yvar);
266 if (intensity > 1) intensity = 1; 266 if (intensity > 1) intensity = 1;