fix chat text being 50% transparent for no good reason

y'all lived like this??
This commit is contained in:
Kae 2023-06-20 22:41:36 +10:00
parent 58a036ffb0
commit a330802d37

View File

@ -268,9 +268,7 @@ void Chat::renderImpl() {
TextPositioning tp = {Vec2F(chatMin), HorizontalAnchor::LeftAnchor, VerticalAnchor::BottomAnchor, wrapWidth}; TextPositioning tp = {Vec2F(chatMin), HorizontalAnchor::LeftAnchor, VerticalAnchor::BottomAnchor, wrapWidth};
messageHeight = guiContext.determineInterfaceTextSize(messageString, tp).size()[1] + lineHeightMargin; messageHeight = guiContext.determineInterfaceTextSize(messageString, tp).size()[1] + lineHeightMargin;
auto fadeColor = fade; m_chatLog->drawText(messageString, tp, m_fontSize, fade, FontMode::Normal, m_chatLineHeight);
fadeColor[3] /= 2;
m_chatLog->drawText(messageString, tp, m_fontSize, fadeColor, FontMode::Normal, m_chatLineHeight);
} }
chatMin[1] += ceil(messageHeight); chatMin[1] += ceil(messageHeight);