зеркало из https://github.com/github/putty.git
Don't try to initialise the palette unless we have Color QuickDraw. This gets
PuTTY running on my Mac SE again (albeit very slowly and with scroll optimisation broken for some reason). [originally from svn r2253]
This commit is contained in:
Родитель
19e1c15761
Коммит
d63d02b743
|
@ -1,4 +1,4 @@
|
|||
/* $Id: macterm.c,v 1.9 2002/11/23 20:02:38 ben Exp $ */
|
||||
/* $Id: macterm.c,v 1.10 2002/11/23 22:36:56 ben Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1999 Simon Tatham
|
||||
* Copyright (c) 1999, 2002 Ben Harris
|
||||
|
@ -228,6 +228,8 @@ static void mac_adjustsize(Session *s, int newrows, int newcols) {
|
|||
static void mac_initpalette(Session *s) {
|
||||
int i;
|
||||
|
||||
if (!HAVE_COLOR_QD())
|
||||
return;
|
||||
/*
|
||||
* Most colours should be inhibited on 2bpp displays.
|
||||
* Palette manager documentation suggests inhibiting all tolerant colours
|
||||
|
|
Загрузка…
Ссылка в новой задаче