From: simon Date: Mon, 22 Jul 2013 07:12:31 +0000 (+0000) Subject: Increase FONT_MAXNO from 0x2f to 0x40, to ensure the fonts[] array X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/edb548cd8283b5e3f680a0a8b641f9afb12d4ba4 Increase FONT_MAXNO from 0x2f to 0x40, to ensure the fonts[] array includes every possible combination of the font bitfields, in particular ATTR_OEM|ATTR_NARROW. git-svn-id: svn://svn.tartarus.org/sgt/putty@9966 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows/window.c b/windows/window.c index f1f72525..0ae88cc1 100644 --- a/windows/window.c +++ b/windows/window.c @@ -168,7 +168,7 @@ struct agent_callback { #define FONT_OEMUND 0x22 #define FONT_OEMBOLDUND 0x23 -#define FONT_MAXNO 0x2F +#define FONT_MAXNO 0x40 #define FONT_SHIFT 5 static HFONT fonts[FONT_MAXNO]; static LOGFONT lfont;