From: <ch...@us...> - 2003-05-25 21:24:49
|
Update of /cvsroot/fte/fte/src In directory sc8-pr-cvs1:/tmp/cvs-serv24110 Modified Files: c_config.cpp Log Message: h_words color problem fix, now color information is imported correctly. Index: c_config.cpp =================================================================== RCS file: /cvsroot/fte/fte/src/c_config.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- c_config.cpp 10 Jan 2003 03:56:12 -0000 1.18 +++ c_config.cpp 25 May 2003 21:24:46 -0000 1.19 @@ -859,7 +859,12 @@ Col <<= 4; Col |= (hcPlain_Background & 0x0F); } else { - if (sscanf(Value, "%2X", &Col) != 1) return -1; + unsigned int ColBg, ColFg; + + if (sscanf(colorstr, "%1X %1X", &ColFg, &ColBg) != 2) + return 0; + + Col = ColFg | (ColBg << 4); } color = Col; } |