1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

Fix from Robert de Bath which reorders the Windows initialisation

sequence: since init_fonts sets up ucsdata based on the available
Windows fonts, we should call it before passing ucsdata to term_init.

[originally from svn r9527]
This commit is contained in:
Simon Tatham 2012-05-13 15:59:24 +00:00
parent 16a02bb9fc
commit d095b3c35c

View File

@ -698,6 +698,12 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
NULL, NULL, inst, NULL);
}
/*
* Initialise the fonts, simultaneously correcting the guesses
* for font_{width,height}.
*/
init_fonts(0,0);
/*
* Initialise the terminal. (We have to do this _after_
* creating the window, since the terminal is the first thing
@ -711,12 +717,6 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
conf_get_int(conf, CONF_width),
conf_get_int(conf, CONF_savelines));
/*
* Initialise the fonts, simultaneously correcting the guesses
* for font_{width,height}.
*/
init_fonts(0,0);
/*
* Correct the guesses for extra_{width,height}.
*/