mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Fixed parsing of color specification strings containing "bright"
svn path=/trunk/; revision=4348
This commit is contained in:
parent
65620794d3
commit
85e1c49842
1 changed files with 5 additions and 2 deletions
|
@ -193,7 +193,7 @@ static
|
||||||
WORD str_to_color(LPTSTR* arg_str)
|
WORD str_to_color(LPTSTR* arg_str)
|
||||||
{
|
{
|
||||||
LPTSTR str;
|
LPTSTR str;
|
||||||
BOOL bBri=FALSE;
|
BOOL bBri;
|
||||||
|
|
||||||
WORD tmp_clr,ret_clr;
|
WORD tmp_clr,ret_clr;
|
||||||
|
|
||||||
|
@ -206,6 +206,8 @@ WORD str_to_color(LPTSTR* arg_str)
|
||||||
|
|
||||||
|
|
||||||
/*foreground*/
|
/*foreground*/
|
||||||
|
bBri = FALSE;
|
||||||
|
|
||||||
if(_tcsnicmp(str,"bri",3) == 0 )
|
if(_tcsnicmp(str,"bri",3) == 0 )
|
||||||
{
|
{
|
||||||
bBri = TRUE;
|
bBri = TRUE;
|
||||||
|
@ -226,6 +228,7 @@ WORD str_to_color(LPTSTR* arg_str)
|
||||||
ret_clr = tmp_clr | (bBri << 3);
|
ret_clr = tmp_clr | (bBri << 3);
|
||||||
|
|
||||||
/*background*/
|
/*background*/
|
||||||
|
bBri = FALSE;
|
||||||
|
|
||||||
if(_tcsnicmp(str,"bri",3) == 0 )
|
if(_tcsnicmp(str,"bri",3) == 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue