From d63d02b74358a7f7a0e0c0ad538947e013443359 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 23 Nov 2002 22:36:56 +0000 Subject: [PATCH] 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] --- mac/macterm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mac/macterm.c b/mac/macterm.c index 1bc43241..229a9083 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -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