mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Merge #1981
1981: Fix: background colors being set to white r=def- a=Aerll After changing either of background colors in ddnet tab in settings and reopening the client, both become white. Co-authored-by: Aerll <31746984+aerll@users.noreply.github.com>
This commit is contained in:
commit
4a83a42f14
|
@ -46,7 +46,7 @@ ColorHSLA CConsole::CResult::GetColor(unsigned Index, bool Light)
|
|||
const char *pStr = m_apArgs[Index];
|
||||
if(str_isallnum(pStr) || ((pStr[0] == '-' || pStr[0] == '+') && str_isallnum(pStr+1))) // Teeworlds Color (Packed HSL)
|
||||
{
|
||||
hsl = ColorHSLA(str_toint(pStr), true);
|
||||
hsl = ColorHSLA(str_toulong_base(pStr, 10), true);
|
||||
}
|
||||
else if(*pStr == '$') // Hex RGB
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue