diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 12:03:00 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 17:50:49 +0900 |
commit | 04d353236066b9aa85f6387fa05d3d37b75a7dd2 (patch) | |
tree | 3781200cbdb5db08e22cb07dd16c2dcdf6402b98 /kimgio/dds.cpp | |
parent | b0f1961286230520573e2433b0ed4562718ce7a3 (diff) | |
download | tdelibs-04d353236066b9aa85f6387fa05d3d37b75a7dd2.tar.gz tdelibs-04d353236066b9aa85f6387fa05d3d37b75a7dd2.zip |
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4c0dae60b2fbc60996fc8f4bd29ee6219b869527)
Diffstat (limited to 'kimgio/dds.cpp')
-rw-r--r-- | kimgio/dds.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kimgio/dds.cpp b/kimgio/dds.cpp index 22251002c..28e4f9110 100644 --- a/kimgio/dds.cpp +++ b/kimgio/dds.cpp @@ -294,7 +294,7 @@ namespace { // Private. const uint h = header.height; for( uint y = 0; y < h; y++ ) { - QRgb * scanline = (QRgb *) img.scanLine( y ); + TQRgb * scanline = (TQRgb *) img.scanLine( y ); for( uint x = 0; x < w; x++ ) { uchar r, g, b, a; s >> b >> g >> r >> a; @@ -311,7 +311,7 @@ namespace { // Private. const uint h = header.height; for( uint y = 0; y < h; y++ ) { - QRgb * scanline = (QRgb *) img.scanLine( y ); + TQRgb * scanline = (TQRgb *) img.scanLine( y ); for( uint x = 0; x < w; x++ ) { uchar r, g, b; s >> b >> g >> r; @@ -328,7 +328,7 @@ namespace { // Private. const uint h = header.height; for( uint y = 0; y < h; y++ ) { - QRgb * scanline = (QRgb *) img.scanLine( y ); + TQRgb * scanline = (TQRgb *) img.scanLine( y ); for( uint x = 0; x < w; x++ ) { Color1555 color; s >> color.u; @@ -349,7 +349,7 @@ namespace { // Private. const uint h = header.height; for( uint y = 0; y < h; y++ ) { - QRgb * scanline = (QRgb *) img.scanLine( y ); + TQRgb * scanline = (TQRgb *) img.scanLine( y ); for( uint x = 0; x < w; x++ ) { Color4444 color; s >> color.u; @@ -370,7 +370,7 @@ namespace { // Private. const uint h = header.height; for( uint y = 0; y < h; y++ ) { - QRgb * scanline = (QRgb *) img.scanLine( y ); + TQRgb * scanline = (TQRgb *) img.scanLine( y ); for( uint x = 0; x < w; x++ ) { Color565 color; s >> color.u; @@ -524,11 +524,11 @@ namespace { // Private. const uint h = header.height; BlockDXT block; - QRgb * scanline[4]; + TQRgb * scanline[4]; for( uint y = 0; y < h; y += 4 ) { for( uint j = 0; j < 4; j++ ) { - scanline[j] = (QRgb *) img.scanLine( y + j ); + scanline[j] = (TQRgb *) img.scanLine( y + j ); } for( uint x = 0; x < w; x += 4 ) { @@ -564,11 +564,11 @@ namespace { // Private. BlockDXT block; BlockDXTAlphaExplicit alpha; - QRgb * scanline[4]; + TQRgb * scanline[4]; for( uint y = 0; y < h; y += 4 ) { for( uint j = 0; j < 4; j++ ) { - scanline[j] = (QRgb *) img.scanLine( y + j ); + scanline[j] = (TQRgb *) img.scanLine( y + j ); } for( uint x = 0; x < w; x += 4 ) { @@ -616,11 +616,11 @@ namespace { // Private. BlockDXT block; BlockDXTAlphaLinear alpha; - QRgb * scanline[4]; + TQRgb * scanline[4]; for( uint y = 0; y < h; y += 4 ) { for( uint j = 0; j < 4; j++ ) { - scanline[j] = (QRgb *) img.scanLine( y + j ); + scanline[j] = (TQRgb *) img.scanLine( y + j ); } for( uint x = 0; x < w; x += 4 ) { @@ -671,11 +671,11 @@ namespace { // Private. BlockDXT block; BlockDXTAlphaLinear alpha; - QRgb * scanline[4]; + TQRgb * scanline[4]; for( uint y = 0; y < h; y += 4 ) { for( uint j = 0; j < 4; j++ ) { - scanline[j] = (QRgb *) img.scanLine( y + j ); + scanline[j] = (TQRgb *) img.scanLine( y + j ); } for( uint x = 0; x < w; x += 4 ) { @@ -720,11 +720,11 @@ namespace { // Private. BlockDXTAlphaLinear xblock; BlockDXTAlphaLinear yblock; - QRgb * scanline[4]; + TQRgb * scanline[4]; for( uint y = 0; y < h; y += 4 ) { for( uint j = 0; j < 4; j++ ) { - scanline[j] = (QRgb *) img.scanLine( y + j ); + scanline[j] = (TQRgb *) img.scanLine( y + j ); } for( uint x = 0; x < w; x += 4 ) { @@ -941,9 +941,9 @@ namespace { // Private. // Copy face on the image. for( uint y = 0; y < header.height; y++ ) { - QRgb * src = (QRgb *) face.scanLine( y ); - QRgb * dst = (QRgb *) img.scanLine( y + offset_y ) + offset_x; - memcpy( dst, src, sizeof(QRgb) * header.width ); + TQRgb * src = (TQRgb *) face.scanLine( y ); + TQRgb * dst = (TQRgb *) img.scanLine( y + offset_y ) + offset_x; + memcpy( dst, src, sizeof(TQRgb) * header.width ); } } |