From 8e299727df0fb1fe4805aedbb496b7b370b12870 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 24 Dec 2015 17:55:19 -0800 Subject: 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 --- qt-mobile/qml/mobilecomponents/Icon.qml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'qt-mobile/qml') 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 + } + */ } -- cgit v1.2.3-70-g09d2