Fixed an issue where text transparencies would not work.

This commit is contained in:
Leon Styhre 2022-01-31 22:37:10 +01:00
parent 285d2a7bcc
commit 0e9e47e090

View file

@ -256,6 +256,9 @@ void TextComponent::onTextChanged()
f->wrapText(text, mSize.x), glm::vec2 {}, (mColor >> 8 << 8) | mOpacity, mSize.x,
mHorizontalAlignment, mLineSpacing, mNoTopMargin));
}
// This is required to set the color transparency.
onColorChanged();
}
void TextComponent::onColorChanged()