Mail Archives: djgpp/1999/03/10/06:07:03
> in allegro text grey is
> rgb = grey(32,32,32)
>
> but
> in a dialog i cant do &grey for [].bg = &grey
> i tryed to put 323232 for bg and it worked but the color wasnt grey
No, it wouldn't be. You can't precalculate and hardcode the bit pattern
for a color, because this varies depending on the video mode and your
graphics hardware, for example the makecol() function is quite likely
to return a totally different value on my machine to what it does on
yours. So you can't store these numbers directly into an initialised
array, but will have to calculate them after you set the video mode,
using makecol().
Shawn Hargreaves.
- Raw text -