summaryrefslogtreecommitdiff
path: root/noncore/styles/theme/ogfxeffect.cpp
Side-by-side diff
Diffstat (limited to 'noncore/styles/theme/ogfxeffect.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/styles/theme/ogfxeffect.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/noncore/styles/theme/ogfxeffect.cpp b/noncore/styles/theme/ogfxeffect.cpp
index 90b45fe..ab63c98 100644
--- a/noncore/styles/theme/ogfxeffect.cpp
+++ b/noncore/styles/theme/ogfxeffect.cpp
@@ -4,19 +4,23 @@
(C) 1998, 1999 Dirk A. Mueller <mueller@kde.org>
*/
// $Id$
-#include <qimage.h>
-#include <qpainter.h>
+#include "ogfxeffect.h"
+/* OPIE */
+#include <opie2/odebug.h>
#include <qpe/qmath.h>
-#include "ogfxeffect.h"
+/* QT */
+#include <qimage.h>
+#include <qpainter.h>
+/* STD */
#include <cstdlib>
#include <cmath>
//======================================================================
//
// Gradient effects
@@ -40,13 +44,13 @@ QImage OGfxEffect::gradient(const QSize &size, const QColor &ca,
int rDiff, gDiff, bDiff;
int rca, gca, bca, rcb, gcb, bcb;
QImage image(size, 32);
if (size.width() == 0 || size.height() == 0) {
- qDebug ( "WARNING: OGfxEffect::gradient: invalid image" );
+ odebug << "WARNING: OGfxEffect::gradient: invalid image" << oendl;
return image;
}
register int x, y;
rDiff = (rcb = cb.red()) - (rca = ca.red());
@@ -296,13 +300,13 @@ QPixmap& OGfxEffect::blend(QPixmap &pixmap, float initial_intensity,
QImage& OGfxEffect::blend(QImage &image, float initial_intensity,
const QColor &bgnd, GradientType eff,
bool anti_dir)
{
if (image.width() == 0 || image.height() == 0) {
- qDebug ( "Invalid image\n" );
+ odebug << "Invalid image" << oendl;
return image;
}
int r_bgnd = bgnd.red(), g_bgnd = bgnd.green(), b_bgnd = bgnd.blue();
int r, g, b;
int ind;
@@ -482,13 +486,13 @@ QImage& OGfxEffect::blend(QImage &image, float initial_intensity,
data[ind] = qRgba(r, g, b, a);
}
}
}
else
- qDebug ( "not implemented\n" );
+ odebug << "not implemented" << oendl;
return image;
}
#if 0
// Not very efficient as we create a third big image...