summaryrefslogtreecommitdiffstats
path: root/examples/canvas/blendshadow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
commit520c05ef06ce203ad32470730f68402bc7719157 (patch)
tree8d0bb18bbbecb4c837e232848905e5819db84b81 /examples/canvas/blendshadow.cpp
parentb82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff)
downloadtqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz
tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip
Automated update from qt3
Diffstat (limited to 'examples/canvas/blendshadow.cpp')
-rw-r--r--examples/canvas/blendshadow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/canvas/blendshadow.cpp b/examples/canvas/blendshadow.cpp
index e4a498b2c..d2f761db0 100644
--- a/examples/canvas/blendshadow.cpp
+++ b/examples/canvas/blendshadow.cpp
@@ -9,18 +9,18 @@ static inline int blendComponent( int v, int av, int s, int as )
static inline TQRgb blendShade( TQRgb v, TQRgb s )
{
//shadow image is already reduced and blurred
- int as = qAlpha(s);
- int av = qAlpha(v);
+ int as = tqAlpha(s);
+ int av = tqAlpha(v);
if ( as == 0 || av == 255 )
return v;
int a = as + av -(as*av)/255;
- int r = blendComponent( qRed(v),av, qRed(s), as)/a;
- int g = blendComponent( qGreen(v),av, qGreen(s), as)/a;
- int b = blendComponent( qBlue(v),av, qBlue(s), as)/a;
+ int r = blendComponent( tqRed(v),av, tqRed(s), as)/a;
+ int g = blendComponent( tqGreen(v),av, tqGreen(s), as)/a;
+ int b = blendComponent( tqBlue(v),av, tqBlue(s), as)/a;
- return qRgba(r,g,b,a);
+ return tqRgba(r,g,b,a);
}