Android: Fix QtTextureView inverted opacity condition
The Android TextureView class wants to know whether the view is opaque, while the condition has been evaluating whether it should be transparent. Invert the condition to let Android know correctly whether the TextureView should have transparency. Change-Id: Ic636f78dd3c691e85456c579e4559b8bc7a077a2 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 8b601e6dbecdd85b77e0a7796dc3e5b908dfb5ec) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
e7f10f7e76
commit
5511f64ded
@ -253,7 +253,7 @@ void QAndroidPlatformWindow::createSurface()
|
||||
}
|
||||
|
||||
const bool windowStaysOnTop = bool(window()->flags() & Qt::WindowStaysOnTopHint);
|
||||
const bool isOpaque = format().hasAlpha() || (0.0 < window()->opacity() < 1.0);
|
||||
const bool isOpaque = !format().hasAlpha() && qFuzzyCompare(window()->opacity(), 1.0);
|
||||
|
||||
m_nativeQtWindow.callMethod<void>("createSurface", windowStaysOnTop, x, y, w, h, 32, isOpaque,
|
||||
m_surfaceContainerType);
|
||||
|
Loading…
x
Reference in New Issue
Block a user