SetCtlColors /BRANDING wasn't working right, if just one of the background or text color were specified

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3656 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-09-17 16:48:38 +00:00
parent c9aa2a4ffc
commit b3d872ee65

View file

@ -3791,13 +3791,13 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
{
c.flags|=CC_BK|CC_BKB;
c.lbStyle=BS_NULL;
if (!*line.gettoken_str(a))
if (!*line.gettoken_str(a+1))
{
c.bkc=COLOR_BTNFACE;
c.flags|=CC_BK_SYS;
}
c.flags|=CC_TEXT;
if (!*line.gettoken_str(a+1))
if (!*line.gettoken_str(a))
{
c.text=COLOR_BTNFACE;
c.flags|=CC_TEXT_SYS;