mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 22:12:47 -05:00
Make the `vtmode' config option work under X. In the process I've
had to move another of its values out into wincfg.c - paradoxically, this was the `font has X encoding' option! (Because the Unix font handling code expects to be able to tell for _itself_ whether it has a font with X-encoded line drawing glyphs.) [originally from svn r3145]
This commit is contained in:
@ -2394,7 +2394,8 @@ void setup_fonts_ucs(struct gui_data *inst)
|
||||
inst->font_height = inst->fonts[0]->ascent + inst->fonts[0]->descent;
|
||||
|
||||
inst->direct_to_font = init_ucs(&inst->ucsdata,
|
||||
inst->cfg.line_codepage, font_charset);
|
||||
inst->cfg.line_codepage, font_charset,
|
||||
inst->cfg.vtmode);
|
||||
}
|
||||
|
||||
void set_geom_hints(struct gui_data *inst)
|
||||
@ -2531,7 +2532,8 @@ void change_settings_menuitem(GtkMenuItem *item, gpointer data)
|
||||
strcmp(oldcfg.boldfont.name, cfg2.boldfont.name) ||
|
||||
strcmp(oldcfg.widefont.name, cfg2.widefont.name) ||
|
||||
strcmp(oldcfg.wideboldfont.name, cfg2.wideboldfont.name) ||
|
||||
strcmp(oldcfg.line_codepage, cfg2.line_codepage)) {
|
||||
strcmp(oldcfg.line_codepage, cfg2.line_codepage) ||
|
||||
oldcfg.vtmode != cfg2.vtmode) {
|
||||
setup_fonts_ucs(inst);
|
||||
need_size = 1;
|
||||
} else
|
||||
|
Reference in New Issue
Block a user