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);