[EMAIL PROTECTED] writes:
> I've a problem wit a program that loads a palette from a file(RGB a 1Byte).
> ggiMapColor always returns 0.
>
> can anyone help me please?
[SNIP]
> for(nd = 0; nd < PALENT; nd++) {
> pal[nd].r = (uint16) palf[nd].r;
> pal[nd].g = (uint16) palf[nd].g;
> pal[nd].b = (uint16) palf[nd].b;
GGI uses 16 bits for ggi_color.r/g/b, so you need to scale the 8 bit
values (e.g. multiply by 0x0101).
Cheers,
__
\/ Andrew Apted <[EMAIL PROTECTED]>
- GGI - problem(ggiMapColor) thomas . raschbacher
- Re: GGI - problem(ggiMapColor) Andrew Apted
- Re: GGI - problem(ggiMapColor) Christoph Egger
