]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Increase FONT_MAXNO from 0x2f to 0x40, to ensure the fonts[] array
authorSimon Tatham <anakin@pobox.com>
Mon, 22 Jul 2013 07:12:31 +0000 (07:12 +0000)
committerSimon Tatham <anakin@pobox.com>
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.

[originally from svn r9966]

windows/window.c

index f1f72525a305a0b6ed34d95f31e26db9df236482..0ae88cc10e7c963335592fc8655cc541813198f1 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;