~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase FONT_MAXNO from 0x2f to 0x40, to ensure the fonts[] array
[sgt/putty]
/
windows
/
window.c
diff --git
a/windows/window.c
b/windows/window.c
index
b477d6a
..
0ae88cc
100644
(file)
--- 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_OEMUND 0x22
#define FONT_OEMBOLDUND 0x23
-#define FONT_MAXNO 0x
2F
+#define FONT_MAXNO 0x
40
#define FONT_SHIFT 5
static HFONT fonts[FONT_MAXNO];
static LOGFONT lfont;
#define FONT_SHIFT 5
static HFONT fonts[FONT_MAXNO];
static LOGFONT lfont;
@@
-4805,7
+4805,7
@@
void palette_set(void *frontend, int n, int r, int g, int b)
{
if (n >= 16)
n += 256 - 16;
{
if (n >= 16)
n += 256 - 16;
- if (n > NALLCOLOURS)
+ if (n >
=
NALLCOLOURS)
return;
real_palette_set(n, r, g, b);
if (pal) {
return;
real_palette_set(n, r, g, b);
if (pal) {