Increase FONT_MAXNO from 0x2f to 0x40, to ensure the fonts[] array
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 22 Jul 2013 07:12:31 +0000 (07:12 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 22 Jul 2013 07:12:31 +0000 (07:12 +0000)
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

windows/window.c

index f1f7252..0ae88cc 100644 (file)
@@ -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;