diff options
Diffstat (limited to 'src/kernel/qpsprinter.cpp')
-rw-r--r-- | src/kernel/qpsprinter.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/kernel/qpsprinter.cpp b/src/kernel/qpsprinter.cpp index 1fc1190a7..7d660b471 100644 --- a/src/kernel/qpsprinter.cpp +++ b/src/kernel/qpsprinter.cpp @@ -5407,12 +5407,12 @@ static TQByteArray compress( const TQImage & image, bool gray ) { for( int x=0; x < width; x++ ) { TQRgb rgb = image.color( s[x] ); if ( gray ) { - pixel[i] = (unsigned char) qGray( rgb ); + pixel[i] = (unsigned char) tqGray( rgb ); i++; } else { - pixel[i] = (unsigned char) qRed( rgb ); - pixel[i+1] = (unsigned char) qGreen( rgb ); - pixel[i+2] = (unsigned char) qBlue( rgb ); + pixel[i] = (unsigned char) tqRed( rgb ); + pixel[i+1] = (unsigned char) tqGreen( rgb ); + pixel[i+2] = (unsigned char) tqBlue( rgb ); i += 3; } } @@ -5423,15 +5423,15 @@ static TQByteArray compress( const TQImage & image, bool gray ) { TQRgb * s = (TQRgb*)(image.scanLine( y )); for( int x=0; x < width; x++ ) { TQRgb rgb = (*s++); - if ( alpha && qAlpha( rgb ) < 0x40 ) // 25% alpha, convert to white - - rgb = qRgb( 0xff, 0xff, 0xff ); + if ( alpha && tqAlpha( rgb ) < 0x40 ) // 25% alpha, convert to white - + rgb = tqRgb( 0xff, 0xff, 0xff ); if ( gray ) { - pixel[i] = (unsigned char) qGray( rgb ); + pixel[i] = (unsigned char) tqGray( rgb ); i++; } else { - pixel[i] = (unsigned char) qRed( rgb ); - pixel[i+1] = (unsigned char) qGreen( rgb ); - pixel[i+2] = (unsigned char) qBlue( rgb ); + pixel[i] = (unsigned char) tqRed( rgb ); + pixel[i+1] = (unsigned char) tqGreen( rgb ); + pixel[i+2] = (unsigned char) tqBlue( rgb ); i += 3; } } @@ -5767,7 +5767,7 @@ static const char * color( const TQColor &c, TQPrinter * printer ) sprintf( returnbuffer, "%d d2 ", c.red() ); else if ( printer->colorMode() == TQPrinter::GrayScale ) sprintf( returnbuffer, "%d d2 ", - qGray( c.red(), c.green(),c.blue() ) ); + tqGray( c.red(), c.green(),c.blue() ) ); else sprintf( returnbuffer, "%d %d %d ", c.red(), c.green(), c.blue() ); |