diff options
Diffstat (limited to 'domino/misc.cpp')
-rw-r--r-- | domino/misc.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/domino/misc.cpp b/domino/misc.cpp index f94f414..131149c 100644 --- a/domino/misc.cpp +++ b/domino/misc.cpp @@ -77,9 +77,9 @@ TQImage tintImage(const TQImage &img, const TQColor &tintColor) { TQImage *result = new TQImage(img.width(), img.height(), 32, 0, TQImage::IgnoreEndian); result->setAlphaBuffer( true ); - register uint *data = (unsigned int*) img.bits(); - register uint *resultData = (unsigned int*) result->bits(); - register uint total = img.width()*img.height(); + uint *data = (unsigned int*) img.bits(); + uint *resultData = (unsigned int*) result->bits(); + uint total = img.width()*img.height(); for ( uint current = 0 ; current < total ; ++current ) { resultData[ current ] = tqRgba( tintColor.red(), tintColor.green(), tintColor.blue(), tqAlpha( data[ current ] )); } @@ -89,10 +89,10 @@ TQImage tintImage(const TQImage &img, const TQColor &tintColor) { TQImage setImageOpacity(const TQImage &img, const uint &p) { TQImage *result = new TQImage(img.width(), img.height(), 32, 0, TQImage::IgnoreEndian); result->setAlphaBuffer( true ); - register uint *data = (unsigned int*) img.bits(); - register uint *resultData = (unsigned int*) result->bits(); - register uint alpha; - register uint total = img.width()*img.height(); + uint *data = (unsigned int*) img.bits(); + uint *resultData = (unsigned int*) result->bits(); + uint alpha; + uint total = img.width()*img.height(); for ( uint current = 0 ; current < total ; ++current ) { alpha = tqAlpha( data[ current ] ) * p / 100; resultData[ current ] = tqRgba( tqRed( data[ current ] ), tqGreen( data[ current ] ), tqBlue( data[ current ] ), alpha ); @@ -115,9 +115,9 @@ bool blend( const TQImage & upper, const TQImage & lower, TQImage & output) output = lower.copy(); uchar *i, *o; - register uint a, ab, ac; - register uint col; - register uint w = upper.width(); + uint a, ab, ac; + uint col; + uint w = upper.width(); int row(upper.height() - 1); do |