diff options
Diffstat (limited to 'kimgio/ico.cpp')
-rw-r--r-- | kimgio/ico.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kimgio/ico.cpp b/kimgio/ico.cpp index e14f09fb5..35cef0282 100644 --- a/kimgio/ico.cpp +++ b/kimgio/ico.cpp @@ -169,9 +169,9 @@ namespace if ( icon.isNull() ) return false; icon.setAlphaBuffer( true ); - TQMemArray< QRgb > colorTable( paletteSize ); + TQMemArray< TQRgb > colorTable( paletteSize ); - colorTable.fill( QRgb( 0 ) ); + colorTable.fill( TQRgb( 0 ) ); for ( unsigned i = 0; i < paletteEntries; ++i ) { unsigned char rgb[ 4 ]; @@ -188,7 +188,7 @@ namespace { stream.readRawBytes( reinterpret_cast< char* >( buf ), bpl ); unsigned char* pixel = buf; - QRgb* p = reinterpret_cast< QRgb* >( lines[ y ] ); + TQRgb* p = reinterpret_cast< TQRgb* >( lines[ y ] ); switch ( header.biBitCount ) { case 1: @@ -230,7 +230,7 @@ namespace for ( unsigned y = rec.height; y--; ) { stream.readRawBytes( reinterpret_cast< char* >( buf ), bpl ); - QRgb* p = reinterpret_cast< QRgb* >( lines[ y ] ); + TQRgb* p = reinterpret_cast< TQRgb* >( lines[ y ] ); for ( unsigned x = 0; x < rec.width; ++x, ++p ) if ( ( ( buf[ x / 8 ] >> ( 7 - ( x & 0x07 ) ) ) & 1 ) ) *p &= TQRGB_MASK; |