Returns the character attribute for the given color.
| 2886 | |
| 2887 | // Returns the character attribute for the given color. |
| 2888 | WORD GetColorAttribute(GTestColor color) { |
| 2889 | switch (color) { |
| 2890 | case COLOR_RED: return FOREGROUND_RED; |
| 2891 | case COLOR_GREEN: return FOREGROUND_GREEN; |
| 2892 | case COLOR_YELLOW: return FOREGROUND_RED | FOREGROUND_GREEN; |
| 2893 | default: return 0; |
| 2894 | } |
| 2895 | } |
| 2896 | |
| 2897 | #else |
| 2898 |