set 24 bits color using Watcom C Library

Hi all!

Somebody knows how can I set a color (24 bits resolution) pixel using Watcom C Library?

For 16 and 256 colors I’m using "setcolor " command, which i put the index of the color in the current palette!

With 24 bits I need pass the RGB values directly ? How can I do it?

I’m developping a PCX Viewer that works wiht 16 and 256 colors.

I’m trying develop a 24 bits PCX Viewer too.

Thanks!

André - Brazil

To my knowledge that’s not supported. You have to remember this stuff is like 10 years old, where 24 bits was simply not available in VGA mode