src/gui/painting/qdrawhelper.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
--- a/src/gui/painting/qdrawhelper.cpp	Fri Apr 16 15:50:13 2010 +0300
+++ b/src/gui/painting/qdrawhelper.cpp	Mon May 03 13:17:34 2010 +0300
@@ -7174,9 +7174,9 @@
         ) {
 
         int a = qGray(coverage);
-        sr = qt_div_255(sr * a);
-        sg = qt_div_255(sg * a);
-        sb = qt_div_255(sb * a);
+        sr = qt_div_255(qt_pow_rgb_invgamma[sr] * a);
+        sg = qt_div_255(qt_pow_rgb_invgamma[sg] * a);
+        sb = qt_div_255(qt_pow_rgb_invgamma[sb] * a);
 
         int ia = 255 - a;
         dr = qt_div_255(dr * ia);