mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-27 10:12:24 +00:00
Oops. When deciding which attributes are interesting, we want the union of
all the screens' capabilites, not the intersection. [originally from svn r2297]
This commit is contained in:
parent
65b8dd1501
commit
e06e554830
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macterm.c,v 1.19 2002/12/08 22:15:10 ben Exp $ */
|
/* $Id: macterm.c,v 1.20 2002/12/08 22:23:08 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Simon Tatham
|
* Copyright (c) 1999 Simon Tatham
|
||||||
* Copyright (c) 1999, 2002 Ben Harris
|
* Copyright (c) 1999, 2002 Ben Harris
|
||||||
@ -1010,7 +1010,7 @@ void pre_paint(Session *s) {
|
|||||||
GDHandle gdh;
|
GDHandle gdh;
|
||||||
Rect myrect, tmprect;
|
Rect myrect, tmprect;
|
||||||
|
|
||||||
s->term->attr_mask = 0xffffffff;
|
s->term->attr_mask = 0;
|
||||||
if (HAVE_COLOR_QD()) {
|
if (HAVE_COLOR_QD()) {
|
||||||
SetPort(s->window);
|
SetPort(s->window);
|
||||||
myrect = (*s->window->visRgn)->rgnBBox;
|
myrect = (*s->window->visRgn)->rgnBBox;
|
||||||
@ -1025,10 +1025,14 @@ void pre_paint(Session *s) {
|
|||||||
switch ((*(*gdh)->gdPMap)->pixelSize) {
|
switch ((*(*gdh)->gdPMap)->pixelSize) {
|
||||||
case 1:
|
case 1:
|
||||||
if (s->cfg.bold_colour)
|
if (s->cfg.bold_colour)
|
||||||
s->term->attr_mask &= ~ATTR_BOLD;
|
s->term->attr_mask |= ~(ATTR_BOLD | ATTR_COLOURS);
|
||||||
/* FALLTHROUGH */
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
s->term->attr_mask &= ~ATTR_COLOURS;
|
s->term->attr_mask |= ~ATTR_COLOURS;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
s->term->attr_mask = ~0;
|
||||||
|
return; /* No point checking more screens. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user