summaryrefslogtreecommitdiff
authorsandman <sandman>2002-07-01 23:38:26 (UTC)
committer sandman <sandman>2002-07-01 23:38:26 (UTC)
commit7191d788415f190680c8a699b2b7bb88ddf28917 (patch) (side-by-side diff)
tree4b1f4c3327d7265da5552d332261ff6c4bf773ec
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 (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
@@ -11,4 +11,6 @@
#include <qpainter.h>
+#include <qpe/qmath.h>
+
#include "ogfxeffect.h"
@@ -22,5 +24,5 @@
QPixmap& OGfxEffect::gradient(QPixmap &pixmap, const QColor &ca,
- const QColor &cb, GradientType eff, int ncols)
+ const QColor &cb, GradientType eff, int /*ncols*/)
{
if(pixmap.depth() > 8 &&
@@ -92,11 +94,9 @@ QPixmap& OGfxEffect::gradient(QPixmap &pixmap, const QColor &ca,
QPixmap& OGfxEffect::blend(QPixmap &pixmap, float initial_intensity,
const QColor &bgnd, GradientType eff,
- bool anti_dir, int ncols)
+ bool anti_dir, int /*ncols*/)
{
QImage image = pixmap.convertToImage();
OGfxEffect::blend(image, initial_intensity, bgnd, eff, anti_dir);
- unsigned int tmp;
-
if ( pixmap. depth ( ) <= 8 )
image. convertDepth ( pixmap. depth ( ));
@@ -219,5 +219,5 @@ QImage& OGfxEffect::blend(QImage &image, float initial_intensity,
intensity = initial_intensity + QMAX(xvar, yvar);
else
- intensity = initial_intensity + sqrt(xvar * xvar + yvar * yvar);
+ intensity = initial_intensity + qSqrt(xvar * xvar + yvar * yvar);
if (intensity > 1) intensity = 1;
if (intensity < 0) intensity = 0;
@@ -263,5 +263,5 @@ QImage& OGfxEffect::blend(QImage &image, float initial_intensity,
intensity = initial_intensity + QMAX(xvar, yvar);
else
- intensity = initial_intensity + sqrt(xvar * xvar + yvar * yvar);
+ intensity = initial_intensity + qSqrt(xvar * xvar + yvar * yvar);
if (intensity > 1) intensity = 1;
if (intensity < 0) intensity = 0;