On Monday 20 May 2002 11:56 am, Martin Vermeer wrote:
> > - the rendering of parenthesis in the "Math delimiter" is often wrong or
> > confused
>
> Confirm. The rendering in the show box top middle is botched. The logic
> seems OK though.

Really?

FormMathsDelim::input(...)
        ...
        Pixmap p1, p2;

        fl_get_pixmap_pixmap(dialog_->button_pix, &p1, &p2);
        fl_draw_bmtable_item(dialog_->bmtable, left, p1, 0, 0);
        fl_draw_bmtable_item(dialog_->bmtable, right, p1, 16, 0);
        fl_redraw_object(dialog_->button_pix);

Surely, we want to use the contents of the bmtable to redraw button_pix. As I 
see it, we're redrawing bmtable. Don't we need to get the Pixmap from the 
bmtable, with
        Pixmap fl_get_bmtable_pixmap(FL_OBJECT *);
and then use this in button_pix with
        fl_set_pixmap_pixmap(FL_OBJECT * ob, Pixmap id, Pixmap mask);
?

Angus

Reply via email to