mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix alignmend... Fixes #687
This commit is contained in:
parent
33cdfee821
commit
45bc79b94b
|
@ -749,14 +749,9 @@ void CChat::OnRender()
|
|||
|
||||
if(g_Config.m_ClMessageFriend)
|
||||
{
|
||||
if(m_aLines[r].m_Friend)
|
||||
{
|
||||
vec3 rgb = HslToRgb(vec3(g_Config.m_ClMessageFriendHue / 255.0f, g_Config.m_ClMessageFriendSat / 255.0f, g_Config.m_ClMessageFriendLht / 255.0f));
|
||||
TextRender()->TextColor(rgb.r, rgb.g, rgb.b, Blend);
|
||||
TextRender()->TextEx(&Cursor, "♥ ", -1);
|
||||
}
|
||||
else // Ugly hack to align messages
|
||||
Cursor.m_X += HeartAlign;
|
||||
vec3 rgb = HslToRgb(vec3(g_Config.m_ClMessageFriendHue / 255.0f, g_Config.m_ClMessageFriendSat / 255.0f, g_Config.m_ClMessageFriendLht / 255.0f));
|
||||
TextRender()->TextColor(rgb.r, rgb.g, rgb.b, m_aLines[r].m_Friend ? Blend : 0); //Less ugly hack to align messages
|
||||
TextRender()->TextEx(&Cursor, "♥ ", -1);
|
||||
}
|
||||
|
||||
// render name
|
||||
|
|
Loading…
Reference in a new issue