From fcbe612a0b5a573846a2d89d6e47cbe553b0ec92 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 25 Sep 2022 10:02:24 +0200 Subject: [PATCH] Fixed an issue where the text background opacity was not calculated correctly. --- es-core/src/components/TextComponent.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/es-core/src/components/TextComponent.cpp b/es-core/src/components/TextComponent.cpp index 3bebb6da4..f813dfd33 100644 --- a/es-core/src/components/TextComponent.cpp +++ b/es-core/src/components/TextComponent.cpp @@ -102,9 +102,6 @@ void TextComponent::setOpacity(float opacity) float textOpacity {opacity * mColorOpacity}; mColor = (mColor & 0xFFFFFF00) | static_cast(textOpacity * 255.0f); - float textBackgroundOpacity {opacity * mBgColorOpacity}; - mBgColor = (mBgColor & 0xFFFFFF00) | static_cast(textBackgroundOpacity * 255.0f); - onColorChanged(); GuiComponent::setOpacity(opacity);