summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengine_blitter.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-01-14 12:48:00 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-01-14 13:07:25 (GMT)
commitd01179752907fa441ca1ae6f6e7e7b351e2a60f8 (patch)
treec0be2b20915d926da4e3c0d814d194a8f8100e5d /src/gui/painting/qpaintengine_blitter.cpp
parent645f29c727f33cc9f8b00b8efcb658a050ac6a26 (diff)
downloadQt-d01179752907fa441ca1ae6f6e7e7b351e2a60f8.zip
Qt-d01179752907fa441ca1ae6f6e7e7b351e2a60f8.tar.gz
Qt-d01179752907fa441ca1ae6f6e7e7b351e2a60f8.tar.bz2
minimaldfb: Set the correct SetDstBlendFunction
Diffstat (limited to 'src/gui/painting/qpaintengine_blitter.cpp')
-rw-r--r--src/gui/painting/qpaintengine_blitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qpaintengine_blitter.cpp b/src/gui/painting/qpaintengine_blitter.cpp
index 7336dcc..a954294 100644
--- a/src/gui/painting/qpaintengine_blitter.cpp
+++ b/src/gui/painting/qpaintengine_blitter.cpp
@@ -302,7 +302,7 @@ void QBlitterPaintEngine::fill(const QVectorPath &path, const QBrush &brush)
void QBlitterPaintEngine::fillRect(const QRectF &rect, const QColor &color)
{
Q_D(QBlitterPaintEngine);
- if (d->capabillities->canBlitterFillRect() && color.alpha() == 255) {
+ if (d->capabillities->canBlitterFillRect() && color.alpha() == 0xff) {
d->fillRect(rect, color);
} else {
d->lock();
@@ -319,7 +319,7 @@ void QBlitterPaintEngine::fillRect(const QRectF &rect, const QBrush &brush)
return;
Q_D(QBlitterPaintEngine);
if (qbrush_style(brush) == Qt::SolidPattern
- && qbrush_color(brush).alpha() == 255
+ && qbrush_color(brush).alpha() == 0xff
&& d->capabillities->canBlitterFillRect())
{
d->fillRect(rect, qbrush_color(brush));