mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 13:05:04 -05:00
Update the non-Color Quickdraw code in pre_paint() to match recent changes
to the Color Quickdraw code. This makes redraw work properly on old Macs again. [originally from svn r2298]
This commit is contained in:
parent
e06e554830
commit
05456758c4
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macterm.c,v 1.20 2002/12/08 22:23:08 ben Exp $ */
|
/* $Id: macterm.c,v 1.21 2002/12/09 22:49:56 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,8 +1010,8 @@ void pre_paint(Session *s) {
|
|||||||
GDHandle gdh;
|
GDHandle gdh;
|
||||||
Rect myrect, tmprect;
|
Rect myrect, tmprect;
|
||||||
|
|
||||||
s->term->attr_mask = 0;
|
|
||||||
if (HAVE_COLOR_QD()) {
|
if (HAVE_COLOR_QD()) {
|
||||||
|
s->term->attr_mask = 0;
|
||||||
SetPort(s->window);
|
SetPort(s->window);
|
||||||
myrect = (*s->window->visRgn)->rgnBBox;
|
myrect = (*s->window->visRgn)->rgnBBox;
|
||||||
LocalToGlobal((Point *)&myrect.top);
|
LocalToGlobal((Point *)&myrect.top);
|
||||||
@ -1025,7 +1025,8 @@ 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 | ATTR_COLOURS);
|
s->term->attr_mask |= ~(ATTR_COLOURS |
|
||||||
|
(s->cfg.bold_colour ? ATTR_BOLD : 0));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
s->term->attr_mask |= ~ATTR_COLOURS;
|
s->term->attr_mask |= ~ATTR_COLOURS;
|
||||||
@ -1037,7 +1038,7 @@ void pre_paint(Session *s) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
s->term->attr_mask &= ~(ATTR_COLOURS |
|
s->term->attr_mask = ~(ATTR_COLOURS |
|
||||||
(s->cfg.bold_colour ? ATTR_BOLD : 0));
|
(s->cfg.bold_colour ? ATTR_BOLD : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user