Hi,
please also CC messages to the GRX mailing list !
Thanks.
On Tue, 28 Mar 2000, GianPiero Puccioni wrote:
First make sure your grx wokrs well with your X installition using the test programs.
In case of any problems try the 24/32bpp patch from
Most of the programs worked and almost all with the patches, still some problems with xcursor and xkey.
You should modify your program to work with real RGB color values instead of a color lookuptable:
First call
GrSetRGBcolorMode();
and use
GrColor GrBuildRGBcolorT(int r,int g,int b); GrColor GrBuildRGBcolorR(int r,int g,int b); /* ...R Limits r,g,b to 0..255; ...T doesnŽt */
or
GrColor GrAllocColor(int r,int g,int b);
to calculate the color value from rgb values.
Hope this helps,
Yes, thanks. I was able to modify my old DOS programs to work under Linux When I compile, I still have a warning that I can't get rid of:
passing arg 4 of `GrBuildPixmap' from incompatible pointer type
GrColor color_tab[256]; // initialize color_tab GrBuildPixmap(pixels,w,h,color_tab);
should work. (Note: untested !)
whatever I give as the type of the color table (GrColorTableP, long, unsigned long...) but it seems to work.
Thanks again.
GianPiero
- Istituto Nazionale di Ottica GianPiero Puccioni *
- Largo E.Fermi 6 E-Mail : gip@ino.it *
- I-50125 Firenze - ITALY Tel +39 055 23081 - Fax +39 055 2337755 *