summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_script_qscriptengineagent.cpp
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2010-07-20 12:48:38 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-07-20 16:35:40 (GMT)
commit5a8a64821da7dae1ff5351b898899a5974c6d569 (patch)
tree94cc3c9dfb64adb912c5fd30df18151e0774ccc8 /doc/src/snippets/code/src_script_qscriptengineagent.cpp
parent42267701edd266463c90cec82d45022446a2606a (diff)
downloadQt-5a8a64821da7dae1ff5351b898899a5974c6d569.zip
Qt-5a8a64821da7dae1ff5351b898899a5974c6d569.tar.gz
Qt-5a8a64821da7dae1ff5351b898899a5974c6d569.tar.bz2
Remove the masking when computing qAlpha()
After a bit shift of 24, only the alpha value should remain, so it is not necessary to mask the result. The documentation state QRgb works on a ARGB quadruplet, so the upper bits can be assumed to be zero in the cases when QRgb is 64 bits. This saves some time because qAlpha() is used for each pixel in the generic blend functions. Reviewed-by: Andreas Kling Reviewed-by: Kim
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptengineagent.cpp')
0 files changed, 0 insertions, 0 deletions