summaryrefslogtreecommitdiffstats
path: root/src/kernel/qpixmap_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qpixmap_x11.cpp')
-rw-r--r--src/kernel/qpixmap_x11.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/kernel/qpixmap_x11.cpp b/src/kernel/qpixmap_x11.cpp
index d0a16c5..cec8ad8 100644
--- a/src/kernel/qpixmap_x11.cpp
+++ b/src/kernel/qpixmap_x11.cpp
@@ -141,7 +141,7 @@ static bool qt_create_mitshm_buffer( const QPaintDevice* dev, int w, int h )
} else {
if ( !XShmQueryVersion(dpy, &major, &minor, &pixmaps_ok) )
return FALSE; // MIT Shm not supported
- qAddPostRoutine( qt_cleanup_mitshm );
+ tqAddPostRoutine( qt_cleanup_mitshm );
xshminit = TRUE;
}
@@ -350,14 +350,14 @@ static void build_scale_table( uint **table, uint nBits )
{
if ( nBits > 7 ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "build_scale_table: internal error, nBits = %i", nBits );
+ tqWarning( "build_scale_table: internal error, nBits = %i", nBits );
#endif
return;
}
if (!*table) {
static bool firstTable = TRUE;
if ( firstTable ) {
- qAddPostRoutine( cleanup_scale_tables );
+ tqAddPostRoutine( cleanup_scale_tables );
firstTable = FALSE;
}
*table = new uint[256];
@@ -394,7 +394,7 @@ void QPixmap::init( int w, int h, int d, bool bitmap, Optimization optim )
{
#if defined(QT_CHECK_STATE)
if ( qApp->type() == QApplication::Tty ) {
- qWarning( "QPixmap: Cannot create a QPixmap when no GUI "
+ tqWarning( "QPixmap: Cannot create a QPixmap when no GUI "
"is being used" );
}
#endif
@@ -441,7 +441,7 @@ void QPixmap::init( int w, int h, int d, bool bitmap, Optimization optim )
rendhd = 0;
#if defined(QT_CHECK_RANGE)
if ( !make_null )
- qWarning( "QPixmap: Invalid pixmap parameters" );
+ tqWarning( "QPixmap: Invalid pixmap parameters" );
#endif
return;
}
@@ -690,7 +690,7 @@ int QPixmap::metric( int m ) const
default:
val = 0;
#if defined(QT_CHECK_RANGE)
- qWarning( "QPixmap::metric: Invalid metric command" );
+ tqWarning( "QPixmap::metric: Invalid metric command" );
#endif
}
}
@@ -889,7 +889,7 @@ QImage QPixmap::convertToImage() const
y = h;
pixel = 0; // eliminate compiler warning
#if defined(QT_CHECK_RANGE)
- qWarning( "QPixmap::convertToImage: Invalid depth %d",
+ tqWarning( "QPixmap::convertToImage: Invalid depth %d",
bppc );
#endif
}
@@ -938,7 +938,7 @@ QImage QPixmap::convertToImage() const
} else {
/* Typically 2 or 4 bits display depth */
#if defined(QT_CHECK_RANGE)
- qWarning( "QPixmap::convertToImage: Display not supported (bpp=%d)",
+ tqWarning( "QPixmap::convertToImage: Display not supported (bpp=%d)",
xi->bits_per_pixel );
#endif
image.reset();
@@ -1098,7 +1098,7 @@ bool QPixmap::convertFromImage( const QImage &img, int conversion_flags )
{
if ( img.isNull() ) {
#if defined(QT_CHECK_NULL)
- qWarning( "QPixmap::convertFromImage: Cannot convert a null image" );
+ tqWarning( "QPixmap::convertFromImage: Cannot convert a null image" );
#endif
return FALSE;
}
@@ -1352,7 +1352,7 @@ bool QPixmap::convertFromImage( const QImage &img, int conversion_flags )
int wordsize;
bool bigendian;
- qSysInfo( &wordsize, &bigendian );
+ tqSysInfo( &wordsize, &bigendian );
bool same_msb_lsb = ( xi->byte_order == MSBFirst ) == ( bigendian );
if( bppc == 8 ) // 8 bit
@@ -1375,7 +1375,7 @@ bool QPixmap::convertFromImage( const QImage &img, int conversion_flags )
else
mode = bppc == 33 ? BPP32_LSB : BPP32_MSB;
} else
- qFatal("Logic error 3");
+ tqFatal("Logic error 3");
#define GET_PIXEL \
int pixel; \
@@ -1494,7 +1494,7 @@ bool QPixmap::convertFromImage( const QImage &img, int conversion_flags )
)
break;
default:
- qFatal("Logic error");
+ tqFatal("Logic error");
}
} else {
switch ( mode ) {
@@ -1591,7 +1591,7 @@ bool QPixmap::convertFromImage( const QImage &img, int conversion_flags )
)
break;
default:
- qFatal("Logic error 2");
+ tqFatal("Logic error 2");
}
}
xi->data = (char *)newbits;
@@ -1756,7 +1756,7 @@ bool QPixmap::convertFromImage( const QImage &img, int conversion_flags )
newbits = (uchar *)newerbits;
} else if ( xi->bits_per_pixel != 8 ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "QPixmap::convertFromImage: Display not supported "
+ tqWarning( "QPixmap::convertFromImage: Display not supported "
"(bpp=%d)", xi->bits_per_pixel );
#endif
}
@@ -2155,17 +2155,17 @@ QPixmap QPixmap::xForm( const QWMatrix &matrix ) const
// #define QT_DEBUG_XIMAGE
#if defined(QT_DEBUG_XIMAGE)
- qDebug( "----IMAGE--INFO--------------" );
- qDebug( "width............. %d", xi->width );
- qDebug( "height............ %d", xi->height );
- qDebug( "xoffset........... %d", xi->xoffset );
- qDebug( "format............ %d", xi->format );
- qDebug( "byte order........ %d", xi->byte_order );
- qDebug( "bitmap unit....... %d", xi->bitmap_unit );
- qDebug( "bitmap bit order.. %d", xi->bitmap_bit_order );
- qDebug( "depth............. %d", xi->depth );
- qDebug( "bytes per line.... %d", xi->bytes_per_line );
- qDebug( "bits per pixel.... %d", xi->bits_per_pixel );
+ tqDebug( "----IMAGE--INFO--------------" );
+ tqDebug( "width............. %d", xi->width );
+ tqDebug( "height............ %d", xi->height );
+ tqDebug( "xoffset........... %d", xi->xoffset );
+ tqDebug( "format............ %d", xi->format );
+ tqDebug( "byte order........ %d", xi->byte_order );
+ tqDebug( "bitmap unit....... %d", xi->bitmap_unit );
+ tqDebug( "bitmap bit order.. %d", xi->bitmap_bit_order );
+ tqDebug( "depth............. %d", xi->depth );
+ tqDebug( "bytes per line.... %d", xi->bytes_per_line );
+ tqDebug( "bits per pixel.... %d", xi->bits_per_pixel );
#endif
int type;
@@ -2188,7 +2188,7 @@ QPixmap QPixmap::xForm( const QWMatrix &matrix ) const
if ( !qt_xForm_helper( mat, xi->xoffset, type, bpp, dptr, xbpl, p_inc, h, sptr, sbpl, ws, hs ) ){
#if defined(QT_CHECK_RANGE)
- qWarning( "QPixmap::xForm: display not supported (bpp=%d)",bpp);
+ tqWarning( "QPixmap::xForm: display not supported (bpp=%d)",bpp);
#endif
QPixmap pm;
return pm;
@@ -2325,7 +2325,7 @@ void QPixmap::x11SetScreen( int screen )
return;
}
#if 0
- qDebug("QPixmap::x11SetScreen for %p from %d to %d. Size is %d/%d", data, x11Screen(), screen, width(), height() );
+ tqDebug("QPixmap::x11SetScreen for %p from %d to %d. Size is %d/%d", data, x11Screen(), screen, width(), height() );
#endif
QImage img = convertToImage();