23 Aug
2002
23 Aug
'02
2:50 p.m.
The following program doesn't work: ... GrSetRGBcolorMode(); ... color = GrAllocCell(); ... Please tell me why?
"In the RGB model GrNumFreeColors returns 0 and GrAllocCell always returns GrNOCOLOR, as colors returned by GrAllocCell are meant to be changed - what is not supposed to be done in RGB mode." (GRX's users manual), see also test/colorops.c Use color = GrAllocColor(). In RGB mode you don't need to GrFreeColor(). E-gards: Jimmy