On Sat, 3 Mar 2001, Mariano Alvarez Fernandez wrote:
Maurice Lombardi escribió:
32 bpp works on djgpp v2. But may be you are speaking of the Linux versions ?
Yes, but I don't know about 32bpp on djgpp v2 because modetest doesn't list 32 bpp modes with my Vodoo card.
Nevertheless, if bccbgi works in 32bpp for you, it must be a linux/X11 related problem.
Plain GRX (without BGI functions) mostly works under X11 with 32bpp (I'm have i810 and when I set color depth to 24, I'm getting 32bpp in GRX)
Now about BGI:
- 1st problem is that getmaxcol() should return value that doesn't fit in int. As result I'm getting call to random(0) with following crash. Setting it to something different from 0 from debugger avoid crash. Maybe we should introduce some typedef like typedef unsigned long long maxcolor_t; in libbcc.h for this purpose
- The next problem is that GrColorInfo->black and GrColorInfo->white are both equal to 0x01000000. After setting from debugger GrColorInfo->black to 0 I was finally able to get at least something displayed on the screen. But it seems that we still have much to do.
Andris