2nd try ...
---------- Forwarded Message ----------
Subject: Re: Grx Problems with linux-X11
Date: Thu, 30 Dec 1999 22:21:45 +0100
From: Hartmut Schirmer <hartmut.schirmer(a)arcormail.de>
On Thu, 30 Dec 1999, DAANEN Vincent wrote:
>Hi
> I'm using grx23 with djgpp and all goes fine but, with linux, I meet
>a problem
> The problem is that GrSetColor don't seem to work :
> - we define 1024x768x256 mode => pseudo color in 8 bits
> - next we set the colors : for (i=0;i<256;i++) GrSetColr(i,i,i,i); :
>we should have a gray-level color table from black (i=0) to white (i=255)
>
> but when I display an image of the gray-levels, I obtain colored
>colors (green red,blue yellow...)
>
> Can someone tell me what to do to obtain my gray-level color table
>using THIS WAY
> Thanks
Well, normally GRX wonŽt allocate all available colors under X11.
Using the option ŽprivcmapŽ forces GRX to use a full 256 color
map.
You can either set the GRX20DRV environment variable to Žxwin::privcmapŽ
or call GrSetDriver( "xwin::privcmap")
Hartmut