mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Fixed an issue where the text background opacity was not calculated correctly.
This commit is contained in:
parent
748969e34d
commit
fcbe612a0b
|
@ -102,9 +102,6 @@ void TextComponent::setOpacity(float opacity)
|
|||
float textOpacity {opacity * mColorOpacity};
|
||||
mColor = (mColor & 0xFFFFFF00) | static_cast<unsigned char>(textOpacity * 255.0f);
|
||||
|
||||
float textBackgroundOpacity {opacity * mBgColorOpacity};
|
||||
mBgColor = (mBgColor & 0xFFFFFF00) | static_cast<unsigned char>(textBackgroundOpacity * 255.0f);
|
||||
|
||||
onColorChanged();
|
||||
GuiComponent::setOpacity(opacity);
|
||||
|
||||
|
|
Loading…
Reference in a new issue