| 105 | // -YXK switch, then leave it alone and don't change it. |
| 106 | |
| 107 | void InitColorPalette(int n) |
| 108 | { |
| 109 | CONST KV *rgbbmpNew, *rgbbmpOld; |
| 110 | int i; |
| 111 | |
| 112 | rgbbmpNew = (n < 1 || !gs.fAltPalette ? rgbbmpDef : rgbbmpDef2); |
| 113 | rgbbmpOld = (n < 1 || !gs.fAltPalette ? rgbbmpDef2 : rgbbmpDef); |
| 114 | for (i = 0; i < cColor2; i++) |
| 115 | if (n < 0 || rgbbmp[i] == rgbbmpOld[i]) |
| 116 | rgbbmp[i] = rgbbmpNew[i]; |
| 117 | } |
| 118 | |
| 119 | |
| 120 | // Set up all the colors used by the program, i.e. the foreground and |
no outgoing calls
no test coverage detected