diff options
author | Michele Calgaro <[email protected]> | 2018-10-17 19:46:30 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2018-10-17 19:46:30 +0900 |
commit | 69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch) | |
tree | 7b133311a4d5e5394f2612dced305f815c04847b /src/kernel/qpixmap_x11.cpp | |
parent | e07baa10b7b8e7105e02a621efadac67216c61ed (diff) | |
download | tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip |
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/kernel/qpixmap_x11.cpp')
-rw-r--r-- | src/kernel/qpixmap_x11.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kernel/qpixmap_x11.cpp b/src/kernel/qpixmap_x11.cpp index 00564b33c..1acdf16a2 100644 --- a/src/kernel/qpixmap_x11.cpp +++ b/src/kernel/qpixmap_x11.cpp @@ -374,12 +374,12 @@ static int defaultScreen = -1; extern bool tqt_use_xrender; // defined in qapplication_x11.cpp extern bool tqt_has_xft; // defined in qfont_x11.cpp -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE #ifndef QT_XFT2 // Xft1 doesn't have XftDrawCreateAlpha, so we fake it in qtaddons_x11.cpp extern "C" XftDraw *XftDrawCreateAlpha( Display *, TQt::HANDLE, int ); #endif // QT_XFT2 -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE /***************************************************************************** TQPixmap member functions @@ -450,7 +450,7 @@ void TQPixmap::init( int w, int h, int d, bool bitmap, Optimization optim ) hd = (HANDLE)XCreatePixmap( x11Display(), RootWindow(x11Display(), x11Screen() ), w, h, data->d ); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if ( tqt_has_xft ) { if ( data->d == 1 ) { rendhd = (HANDLE) XftDrawCreateBitmap( x11Display(), hd ); @@ -460,7 +460,7 @@ void TQPixmap::init( int w, int h, int d, bool bitmap, Optimization optim ) x11Colormap() ); } } -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE } @@ -476,12 +476,12 @@ void TQPixmap::deref() XFreeGC( x11Display(), (GC)data->maskgc ); if ( tqApp && hd) { -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if (rendhd) { XftDrawDestroy( (XftDraw *) rendhd ); rendhd = 0; } -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE XFreePixmap( x11Display(), hd ); hd = 0; @@ -520,10 +520,10 @@ TQPixmap::TQPixmap( int w, int h, const uchar *bits, bool isXbitmap) RootWindow(x11Display(), x11Screen() ), (char *)bits, w, h ); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if ( tqt_has_xft ) rendhd = (HANDLE) XftDrawCreateBitmap (x11Display (), hd); -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE if ( flipped_bits ) // Avoid purify complaint delete [] flipped_bits; @@ -1159,12 +1159,12 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) if ( d == 1 ) { // 1 bit pixmap (bitmap) if ( hd ) { // delete old X pixmap -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if (rendhd) { XftDrawDestroy( (XftDraw *) rendhd ); rendhd = 0; } -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE XFreePixmap( x11Display(), hd ); } @@ -1220,10 +1220,10 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) RootWindow(x11Display(), x11Screen() ), bits, w, h ); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if ( tqt_has_xft ) rendhd = (HANDLE) XftDrawCreateBitmap( x11Display(), hd ); -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE if ( tmp_bits ) // Avoid purify complaint delete [] tmp_bits; @@ -1775,12 +1775,12 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) if ( hd && (width() != (int)w || height() != (int)h || this->depth() != dd) ) { -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if (rendhd) { XftDrawDestroy( (XftDraw *) rendhd ); rendhd = 0; } -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE XFreePixmap( dpy, hd ); // don't reuse old pixmap hd = 0; @@ -1790,7 +1790,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) RootWindow(x11Display(), x11Screen() ), w, h, dd ); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if ( tqt_has_xft ) { if ( data->d == 1 ) { rendhd = (HANDLE) XftDrawCreateBitmap( x11Display (), hd ); @@ -1799,7 +1799,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) (Visual *) x11Visual(), x11Colormap() ); } } -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE } @@ -1826,7 +1826,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) m = image.createAlphaMask( conversion_flags ); setMask( m ); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE // does this image have an alphamap (and not just a 1bpp mask)? bool alphamap = image.depth() == 32; if (image.depth() == 8) { @@ -1907,7 +1907,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) XFreeGC(x11Display(), gc); } } -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE } #ifdef QT_MITSHM_CONVERSIONS @@ -2235,7 +2235,7 @@ TQPixmap TQPixmap::xForm( const TQWMatrix &matrix ) const if ( data->mask ) // xform mask, too pm.setMask( data->mask->xForm(matrix) ); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if ( tqt_use_xrender && tqt_has_xft && data->alphapm ) { // xform the alpha channel XImage *axi = 0; if ((axi = XGetImage(x11Display(), data->alphapm->handle(), @@ -2286,7 +2286,7 @@ TQPixmap TQPixmap::xForm( const TQWMatrix &matrix ) const qSafeXDestroyImage(axi); } } -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE return pm; } @@ -2415,7 +2415,7 @@ Q_EXPORT void copyBlt( TQPixmap *dst, int dx, int dy, src->data->mask, sx, sy, sw, sh, TQt::CopyROP, TRUE ); } -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE // copy alpha data extern bool tqt_use_xrender; // from qapplication_x11.cpp if ( ! tqt_use_xrender || ! src->data->alphapm ) @@ -2474,5 +2474,5 @@ Q_EXPORT void copyBlt( TQPixmap *dst, int dx, int dy, XCopyArea(dst->x11Display(), src->data->alphapm->hd, dst->data->alphapm->hd, gc, sx, sy, sw, sh, dx, dy); XFreeGC(dst->x11Display(), gc); -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE } |