diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-24 17:55:19 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-24 17:57:40 -0800 |
commit | 8e299727df0fb1fe4805aedbb496b7b370b12870 (patch) | |
tree | 0bf04b751069dfd4e687490faa190b2926e7555f | |
parent | b747e1bc722746c4a543c20dc8ef0d60e83adc50 (diff) | |
download | subsurface-8e299727df0fb1fe4805aedbb496b7b370b12870.tar.gz |
QML-UI: fix black squares on some Android devices
It appears that one some Android devices there is an interaction between
Qt and the GL implementation that results in black squares instead of
icons being shown on the screen.
Disabling the GammaAdjust avoids running the shader and fixes this
problem.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-mobile/qml/mobilecomponents/Icon.qml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/qt-mobile/qml/mobilecomponents/Icon.qml b/qt-mobile/qml/mobilecomponents/Icon.qml index 59cfaf054..9f7be0f9b 100644 --- a/qt-mobile/qml/mobilecomponents/Icon.qml +++ b/qt-mobile/qml/mobilecomponents/Icon.qml @@ -38,9 +38,13 @@ Item { sourceSize.width: root.width sourceSize.height: root.height } - GammaAdjust { - anchors.fill: image - source: image - gamma: root.active ? 3.0 : 1 - } + /* + * this appears to cause us to show nothing but black squares instead + * of icons on some Android devices + GammaAdjust { + anchors.fill: image + source: image + gamma: root.active ? 3.0 : 1 + } + */ } |