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 a background.

        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.

        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.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to