Returns the character attribute for the given color.
| 4042 | |
| 4043 | // Returns the character attribute for the given color. |
| 4044 | WORD GetColorAttribute(GTestColor color) { |
| 4045 | switch (color) { |
| 4046 | case COLOR_RED: return FOREGROUND_RED; |
| 4047 | case COLOR_GREEN: return FOREGROUND_GREEN; |
| 4048 | case COLOR_YELLOW: return FOREGROUND_RED | FOREGROUND_GREEN; |
| 4049 | default: return 0; |
| 4050 | } |
| 4051 | } |
| 4052 | |
| 4053 | #else |
| 4054 |