summaryrefslogtreecommitdiffstats
path: root/kimgio/ico.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-25 12:03:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-25 12:29:31 +0900
commit4c0dae60b2fbc60996fc8f4bd29ee6219b869527 (patch)
tree6aa583e34395f4d19d4b85f081b31513e5c9c19d /kimgio/ico.cpp
parent066f257eadc5866386c2cfbdba1a93105cff67ae (diff)
downloadtdelibs-4c0dae60b2fbc60996fc8f4bd29ee6219b869527.tar.gz
tdelibs-4c0dae60b2fbc60996fc8f4bd29ee6219b869527.zip
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kimgio/ico.cpp')
-rw-r--r--kimgio/ico.cpp8
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;