> Fltk supports 24 bit color depth.

Well, no, not really. Fltk supports a variety of colour depths, and
defaults to "truecolor" on most systems, which is generally 32-bit at
the graphics card these days.

However, it can readily support lower bit-depths, or indexed color
palettes. If you need to force an indexed palette, you might get a
useful result by calling;

     Fl::visual(FL_DOUBLE|FL_INDEX);

Reading up on Fl::visual() and Fl::own_colormap() might help. The idea
being the you create a private indexed colormap that is tailored to
match the ability of your displays, and use that...


> My hardware supports  2bit color depth only. What changes I 
> have to make in
> FLTK  to run  my application in my target board.


Really 2-bit? So you can display 4 different colours? That sounds quite
unusual.
Can we ask what sort of hardware this is?




SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to