>
> Hi,
>
> I'm trying to develop a test program with fltk 2.0 to demonstrate
> Composite extension.
>
> So I tried to be brutal and apply the visual to the whole FLTK
> library.
> It works better but I'm not happy with the result: my "hello" window
> became translucent (see screenshot), and I don't want any
> window/widget to be translucent by default.
>
> Is there someone who could explain me how to correct this ?
>

The same problem could be reproduced with fltk-1.1.9 using test program 
test/color_chooser

First run color_chooser without arguments, it displays available visuals:

$ ./color_chooser
usage: ./color_chooser <switches> visual-number
 - : default visual
 r : call Fl::visual(FL_RGB)
 c : call Fl::own_colormap()
 # : use this visual with an empty colormap:
 35: TrueColor   24/32 8r8g8b (default visual)
 36: TrueColor   24/32 8r8g8b
 37: TrueColor   24/32 8r8g8b
 38: TrueColor   24/32 8r8g8b
 39: DirectColor 24/32 8r8g8b
 40: DirectColor 24/32 8r8g8b
 41: DirectColor 24/32 8r8g8b
 42: DirectColor 24/32 8r8g8b
 67: TrueColor   32/32 8r8g8b

Then choose the 32bits visual (here, number 67):

$ ./color_chooser 67

And you get an awful window.
You can try to choose different color: dark color are fully transparent, light 
color are less transparent.
This is not a correct behavior. Opacity must be complete by default (no 
transparency).

Regards.

--
Yann Droneaud <[EMAIL PROTECTED]>
Mandriva

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

Reply via email to