convert nhcolor (fg) and framecolor (bg) to curses colorpair */
| 764 | |
| 765 | /* convert nhcolor (fg) and framecolor (bg) to curses colorpair */ |
| 766 | int |
| 767 | get_framecolor(int nhcolor, int framecolor) |
| 768 | { |
| 769 | /* curses_toggle_color_attr() adds the +1 and takes care of COLORS < 16 */ |
| 770 | return (16 * (framecolor % 8)) + (nhcolor % 16); |
| 771 | } |
| 772 | |
| 773 | static void |
| 774 | write_char(WINDOW * win, int x, int y, nethack_char nch) |
no outgoing calls
no test coverage detected