diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-01-22 15:32:56 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-22 15:51:40 +0100 |
commit | fe6ad3ad4550c9efd2c07ca25ce3625c0615fcba (patch) | |
tree | 425dbedbeb6c62ba73c4e3f69ddec528aae06646 /src/quick | |
parent | 52a9d06bb028a16d9cf9be563a8ad1df09023439 (diff) |
Only look at alpha to decide if rectangle has fill or not.
Task-number: QTBUG-35606
Change-Id: Id403047e19e75d91ec3b3f8367166d8ec96ecaf8
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/quick')
-rw-r--r-- | src/quick/scenegraph/qsgdefaultrectanglenode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgdefaultrectanglenode.cpp b/src/quick/scenegraph/qsgdefaultrectanglenode.cpp index fb989fd6fb..810a503cee 100644 --- a/src/quick/scenegraph/qsgdefaultrectanglenode.cpp +++ b/src/quick/scenegraph/qsgdefaultrectanglenode.cpp @@ -385,7 +385,7 @@ void QSGDefaultRectangleNode::updateGeometry() int borderTail = 0; int outerAAHead = 0; int outerAATail = 0; - bool hasFill = m_color.rgba() != 0 || !stops.isEmpty(); + bool hasFill = m_color.alpha() > 0 || !stops.isEmpty(); if (hasFill) indexCount += fillIndexCount; if (m_antialiasing) { @@ -609,7 +609,7 @@ void QSGDefaultRectangleNode::updateGeometry() int borderTail = 0; int outerAAHead = 0; int outerAATail = 0; - bool hasFill = m_color.rgba() != 0 || !stops.isEmpty(); + bool hasFill = m_color.alpha() > 0 || !stops.isEmpty(); if (hasFill) indexCount += fillIndexCount; if (m_antialiasing) { |