summaryrefslogtreecommitdiffstats
path: root/kimgio/dds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kimgio/dds.cpp')
-rw-r--r--kimgio/dds.cpp36
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 );
}
}