summaryrefslogtreecommitdiffstats
path: root/kimgio/xview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
commit10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch)
tree4bc444c00a79e88105f2cfce5b6209994c413ca0 /kimgio/xview.cpp
parent307136d8eef0ba133b78ceee8e901138d4c996a1 (diff)
downloadtdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz
tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip
Revert automated changes
Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimgio/xview.cpp')
-rw-r--r--kimgio/xview.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kimgio/xview.cpp b/kimgio/xview.cpp
index f6391eb85..746ddc6bc 100644
--- a/kimgio/xview.cpp
+++ b/kimgio/xview.cpp
@@ -84,7 +84,7 @@ KDE_EXPORT void kimgio_xv_read( TQImageIO *_imageio )
r = rg_255_7[((j >> 5) & 0x07)];
g = rg_255_7[((j >> 2) & 0x07)];
b = b_255_3[((j >> 0) & 0x03)];
- image.setColor( j, tqRgb( r, g, b ) );
+ image.setColor( j, qRgb( r, g, b ) );
}
for ( int py = 0; py < y; py++ )
@@ -145,17 +145,17 @@ KDE_EXPORT void kimgio_xv_write( TQImageIO *imageio )
if ( image.depth() == 32 )
{
QRgb *data32 = (QRgb*) data;
- r = tqRed( *data32 ) >> 5;
- g = tqGreen( *data32 ) >> 5;
- b = tqBlue( *data32 ) >> 6;
+ r = qRed( *data32 ) >> 5;
+ g = qGreen( *data32 ) >> 5;
+ b = qBlue( *data32 ) >> 6;
data += sizeof( QRgb );
}
else
{
QRgb color = image.color( *data );
- r = tqRed( color ) >> 5;
- g = tqGreen( color ) >> 5;
- b = tqBlue( color ) >> 6;
+ r = qRed( color ) >> 5;
+ g = qGreen( color ) >> 5;
+ b = qBlue( color ) >> 6;
data++;
}
buffer[ px ] = ( r << 5 ) | ( g << 2 ) | b;