diff options
Diffstat (limited to 'examples/canvas/blendshadow.cpp')
-rw-r--r-- | examples/canvas/blendshadow.cpp | 12 |
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); } |