Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarChat.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-20 22:41:36 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-20 22:41:36 +1000
commita330802d37042160aea71353ec223600310d0eef (patch)
tree3ca1fce8410283c8b733152421f1a4c30f7ff1fa /source/frontend/StarChat.cpp
parent58a036ffb0a61fd2fd208d0d7cef5db41cc07654 (diff)
fix chat text being 50% transparent for no good reason
y'all lived like this??
Diffstat (limited to 'source/frontend/StarChat.cpp')
-rw-r--r--source/frontend/StarChat.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/frontend/StarChat.cpp b/source/frontend/StarChat.cpp
index c4bd98e..b444ce4 100644
--- a/source/frontend/StarChat.cpp
+++ b/source/frontend/StarChat.cpp
@@ -268,9 +268,7 @@ void Chat::renderImpl() {
TextPositioning tp = {Vec2F(chatMin), HorizontalAnchor::LeftAnchor, VerticalAnchor::BottomAnchor, wrapWidth};
messageHeight = guiContext.determineInterfaceTextSize(messageString, tp).size()[1] + lineHeightMargin;
- auto fadeColor = fade;
- fadeColor[3] /= 2;
- m_chatLog->drawText(messageString, tp, m_fontSize, fadeColor, FontMode::Normal, m_chatLineHeight);
+ m_chatLog->drawText(messageString, tp, m_fontSize, fade, FontMode::Normal, m_chatLineHeight);
}
chatMin[1] += ceil(messageHeight);