… | |
… | |
198 | |
198 | |
199 | int width = 0; |
199 | int width = 0; |
200 | fname = rxvt_temp_buf<wchar_t *> (len); |
200 | fname = rxvt_temp_buf<wchar_t *> (len); |
201 | for (int i = 0; i < len; i++) |
201 | for (int i = 0; i < len; i++) |
202 | { |
202 | { |
203 | rxvt_font *f = (*fs)[fs->find_font (chr[i])]; |
203 | rxvt_font *f = (*fs)[fs->find_font_idx (chr[i])]; |
204 | fname[i] = rxvt_utf8towcs (f->name); |
204 | fname[i] = rxvt_utf8towcs (f->name); |
205 | max_it (width, wcswidth (fname[i], wcslen (fname[i]))); |
205 | max_it (width, wcswidth (fname[i], wcslen (fname[i]))); |
206 | } |
206 | } |
207 | |
207 | |
208 | max_it (width, 8+5); // for char + hex |
208 | max_it (width, 8+5); // for char + hex |
… | |
… | |
1033 | } |
1033 | } |
1034 | |
1034 | |
1035 | display->flush (); |
1035 | display->flush (); |
1036 | } |
1036 | } |
1037 | |
1037 | |
1038 | /* checks wether a refresh is requested and starts the refresh timer */ |
1038 | /* checks whether a refresh is requested and starts the refresh timer */ |
1039 | void |
1039 | void |
1040 | rxvt_term::refresh_check () |
1040 | rxvt_term::refresh_check () |
1041 | { |
1041 | { |
1042 | if (want_refresh && !flush_ev.is_active ()) |
1042 | if (want_refresh && !flush_ev.is_active ()) |
1043 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |
1043 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |