diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:56 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:56 +0900 |
commit | 15e8bb327c258847fa2790ef34d874bc7bb18174 (patch) | |
tree | 7cbc22b7cb2a95bb15614a9b36b0dfd6c992e551 /domino/misc.cpp | |
parent | 1250a835cc78d97959dfc77dc78c304b204a7c20 (diff) | |
download | tde-style-domino-15e8bb327c258847fa2790ef34d874bc7bb18174.tar.gz tde-style-domino-15e8bb327c258847fa2790ef34d874bc7bb18174.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 |