From 0e9e47e090a1fbe9b440134689944c2d2c1e3a58 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 31 Jan 2022 22:37:10 +0100 Subject: [PATCH] Fixed an issue where text transparencies would not work. --- es-core/src/components/TextComponent.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/es-core/src/components/TextComponent.cpp b/es-core/src/components/TextComponent.cpp index 9b224d9bf..ffd221f18 100644 --- a/es-core/src/components/TextComponent.cpp +++ b/es-core/src/components/TextComponent.cpp @@ -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()