1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/projects/Rockchip/devices/RK322x/patches/kodi/kodi-900.21387-disable-rendering-highly-transparent-elements.patch
Moretz 698ae89d26 upd
upd
2024-11-08 17:39:59 -03:00

24 lines
710 B
Diff

From aaf187f2f139071cf586a4b6d1ffa1f15e6fcd49 Mon Sep 17 00:00:00 2001
From: sarbes <sarbes@kodi.tv>
Date: Sun, 29 May 2022 20:23:09 +0200
Subject: [PATCH] Disable rendering highly transparent elements
---
xbmc/guilib/GUIControl.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xbmc/guilib/GUIControl.cpp b/xbmc/guilib/GUIControl.cpp
index 9346872177311..a0ab741d2140e 100644
--- a/xbmc/guilib/GUIControl.cpp
+++ b/xbmc/guilib/GUIControl.cpp
@@ -402,7 +402,8 @@ bool CGUIControl::CanFocus() const
bool CGUIControl::IsVisible() const
{
- if (m_forceHidden) return false;
+ if (m_forceHidden || m_transform.alpha <= 0.01f)
+ return false;
return m_visible == VISIBLE;
}