… | |
… | |
853 | if (rs[Rs_color + idx] && isdigit (* (rs[Rs_color + idx]))) |
853 | if (rs[Rs_color + idx] && isdigit (* (rs[Rs_color + idx]))) |
854 | { |
854 | { |
855 | int i = atoi (rs[Rs_color + idx]); |
855 | int i = atoi (rs[Rs_color + idx]); |
856 | |
856 | |
857 | if (i >= 8 && i <= 15) |
857 | if (i >= 8 && i <= 15) |
858 | { /* bright colors */ |
858 | /* bright colors */ |
859 | i -= 8; |
|
|
860 | rs[Rs_color + idx] = rs[Rs_color + minBrightCOLOR + i]; |
859 | rs[Rs_color + idx] = rs[Rs_color + minBrightCOLOR + i - 8]; |
861 | return; |
860 | else if (i >= 0 && i <= 7) |
862 | } |
861 | /* normal colors */ |
863 | |
|
|
864 | if (i >= 0 && i <= 7) /* normal colors */ |
|
|
865 | rs[Rs_color + idx] = rs[Rs_color + minCOLOR + i]; |
862 | rs[Rs_color + idx] = rs[Rs_color + minCOLOR + i]; |
866 | } |
863 | } |
867 | } |
864 | } |
868 | |
865 | |
869 | /*----------------------------------------------------------------------*/ |
866 | /*----------------------------------------------------------------------*/ |