summaryrefslogtreecommitdiffstats
path: root/tdecore/kiconeffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/kiconeffect.cpp')
-rw-r--r--tdecore/kiconeffect.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tdecore/kiconeffect.cpp b/tdecore/kiconeffect.cpp
index f5b38b75a..c48b1e794 100644
--- a/tdecore/kiconeffect.cpp
+++ b/tdecore/kiconeffect.cpp
@@ -462,7 +462,7 @@ void TDEIconEffect::semiTransparent(TQImage &img)
else
for (y=0; y<height; y++)
{
- QRgb *line = (QRgb *) img.scanLine(y);
+ TQRgb *line = (TQRgb *) img.scanLine(y);
for (x=(y%2); x<width; x+=2)
line[x] &= 0x00ffffff;
}
@@ -530,8 +530,8 @@ void TDEIconEffect::semiTransparent(TQPixmap &pix)
for (int y=0; y<img.height(); y++)
{
- QRgb *line = (QRgb *) img.scanLine(y);
- QRgb pattern = (y % 2) ? 0x55555555 : 0xaaaaaaaa;
+ TQRgb *line = (TQRgb *) img.scanLine(y);
+ TQRgb pattern = (y % 2) ? 0x55555555 : 0xaaaaaaaa;
for (int x=0; x<(img.width()+31)/32; x++)
line[x] &= pattern;
}
@@ -557,11 +557,11 @@ TQImage TDEIconEffect::doublePixels(TQImage src) const
int x, y;
if (src.depth() == 32)
{
- QRgb *l1, *l2;
+ TQRgb *l1, *l2;
for (y=0; y<h; y++)
{
- l1 = (QRgb *) src.scanLine(y);
- l2 = (QRgb *) dst.scanLine(y*2);
+ l1 = (TQRgb *) src.scanLine(y);
+ l2 = (TQRgb *) dst.scanLine(y*2);
for (x=0; x<w; x++)
{
l2[x*2] = l2[x*2+1] = l1[x];
@@ -669,14 +669,14 @@ void TDEIconEffect::overlay(TQImage &src, TQImage &overlay)
if (src.depth() == 32)
{
- QRgb *oline, *sline;
+ TQRgb *oline, *sline;
int r1, g1, b1, a1;
int r2, g2, b2, a2;
for (i=0; i<src.height(); i++)
{
- oline = (QRgb *) overlay.scanLine(i);
- sline = (QRgb *) src.scanLine(i);
+ oline = (TQRgb *) overlay.scanLine(i);
+ sline = (TQRgb *) src.scanLine(i);
for (j=0; j<src.width(); j++)
{