Andris Pavenis escribió:
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)
Yes, plain GRX works for me too in X11 with 32 bpp.
The X11 driver always sets the color depth to the X11 color depth.
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
What if we lie and report 16M colors for bgi even if GRX is in 32bpp mode?
Really the GRX 32bpp mode is a 24bpp mode plus a reserved byte.