summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-04-01 16:21:37 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-04-02 11:37:17 (GMT)
commitc02ad8a6f03fb2c23e854783e7620a5a43d991c2 (patch)
tree8b5c4be6b58dd4babc29ccdde0f717bf9cf50eff /src/gui
parent7887095d3a95335251e5c82c3ac7069c5d05a30d (diff)
downloadQt-c02ad8a6f03fb2c23e854783e7620a5a43d991c2.zip
Qt-c02ad8a6f03fb2c23e854783e7620a5a43d991c2.tar.gz
Qt-c02ad8a6f03fb2c23e854783e7620a5a43d991c2.tar.bz2
Improve performance of text blitting in raster paint engine.
Use INTERPOLATE_PIXEL_255 instead of two BYTE_MUL's. Reviewed-by: Gunnar Sletta
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qdrawhelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp
index ae936fe..789d96a 100644
--- a/src/gui/painting/qdrawhelper.cpp
+++ b/src/gui/painting/qdrawhelper.cpp
@@ -7077,7 +7077,7 @@ static void qt_alphamapblit_quint32(QRasterBuffer *rasterBuffer,
#endif
{
int ialpha = 255 - coverage;
- dest[i] = BYTE_MUL(c, uint(coverage)) + BYTE_MUL(dest[i], ialpha);
+ dest[i] = INTERPOLATE_PIXEL_255(c, coverage, dest[i], ialpha);
}
}
}
@@ -7118,7 +7118,7 @@ static void qt_alphamapblit_quint32(QRasterBuffer *rasterBuffer,
#endif
{
int ialpha = 255 - coverage;
- dest[xp] = BYTE_MUL(c, uint(coverage)) + BYTE_MUL(dest[xp], ialpha);
+ dest[xp] = INTERPOLATE_PIXEL_255(c, coverage, dest[xp], ialpha);
}
}