| 141 | } |
| 142 | |
| 143 | void init_char_table(char_set_type set) |
| 144 | { |
| 145 | for (int i = 0; i < NUM_DCHAR_TYPES; i++) |
| 146 | { |
| 147 | char32_t c; |
| 148 | if (Options.cset_override[i]) |
| 149 | c = Options.cset_override[i]; |
| 150 | else |
| 151 | c = dchar_table[set][i]; |
| 152 | if (wcwidth(c) != 1) |
| 153 | c = dchar_table[CSET_ASCII][i]; |
| 154 | Options.char_table[i] = c; |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | char32_t dchar_glyph(dungeon_char_type dchar) |
| 159 | { |
no test coverage detected