> Jos Dreesen wrote:
> > The default drawing operator for fl_bitmap seems to be "OR"
> > is there a way to just replace the existing pixels?
>
>       Hmm, kinda sounds like maybe your widget isn't drawing background.

It isn't.

>       Possibly fltk's fl_bitmap() is not doing an 'or' so much as it's
>       only drawing the pixels that are 'set', so that one has the choice
>       to draw over an existing image.
>
>       Try drawing an fl_rectf() just before your call to fl_bitmap()
>       using the background color you want.

This works, i get a more or less usable display. But at the expected cost of 
some flicker.

>       Or, don't do that and just make sure the widget you're deriving
>       from has a solid box() type type of some kind, like box(FL_FLAT_BOX).
>       This way when the widget redraws, it won't leave the old image behind.

This does not work.

Any possibility to have a behaviour more in line with xlib's XPutIMage ?


Thanks,  Jos


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

Reply via email to