Don't try to initialise the palette unless we have Color QuickDraw. This gets
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 23 Nov 2002 22:36:56 +0000 (22:36 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 23 Nov 2002 22:36:56 +0000 (22:36 +0000)
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

index 1bc4324..229a908 100644 (file)
@@ -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