From 1eb3f8f0f9deefbea5e0ad351bea02331a4af706 Mon Sep 17 00:00:00 2001 From: ben 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). git-svn-id: svn://svn.tartarus.org/sgt/putty@2253 cda61777-01e9-0310-a592-d414129be87e --- 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 -- 2.11.0