From: Chris Hanson Date: Mon, 1 Jun 1992 21:15:19 +0000 (+0000) Subject: For some reason HP has decided that their 8-bit gray displays should X-Git-Tag: 20090517-FFI~9305 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=420e14837fff1900c0836db45ae8073f312422b1;p=mit-scheme.git For some reason HP has decided that their 8-bit gray displays should be GrayScale instead of StaticGray. This problem is compounded by some program, probably MWM, which has preallocated some read/write color cells, thus preventing us from allocating all 256 gray levels. Grumble; work around this by only allocating 128 gray levels. --- diff --git a/v7/src/6001/picture.scm b/v7/src/6001/picture.scm index 965af2654..d8a71ada2 100644 --- a/v7/src/6001/picture.scm +++ b/v7/src/6001/picture.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/6001/picture.scm,v 1.7 1992/05/28 21:35:45 u6001 Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/6001/picture.scm,v 1.8 1992/06/01 21:15:19 cph Exp $ Copyright (c) 1991-92 Massachusetts Institute of Technology @@ -110,10 +110,10 @@ MIT in each case. |# (x-graphics/display window)) '6001-GRAY-MAP gm))))) - (cond ((or (find-info visual-class:static-gray 256 256) - (find-info visual-class:gray-scale 256 256)) + (cond ((find-info visual-class:static-gray 256 256) (make-gray-map 256)) - ((find-info visual-class:pseudo-color 250 256) + ((or (find-info visual-class:gray-scale 256 256) + (find-info visual-class:pseudo-color 250 256)) (make-gray-map 128)) ((find-info visual-class:static-gray 2 2) (make-gray-map 2))