Commit 6b702497 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix small display bug with dropdown atom

parent 1df738d6
......@@ -2008,7 +2008,7 @@ function gui_atom_draw_border(cid, tag, type, width, height) {
}
}
function gui_atom_redraw_border(cid, tag, is_dropdown, width, height) {
function gui_atom_redraw_border(cid, tag, type, width, height) {
var g = get_gobj(cid, tag),
p, a;
// Unfortunately Pd will send updates for gui objects that
......@@ -2022,12 +2022,12 @@ function gui_atom_redraw_border(cid, tag, is_dropdown, width, height) {
// So we have to check for existence here...
if (p) {
configure_item(p, {
points: atom_border_points(width, height)
points: atom_border_points(width, height, type !== 0)
});
if (!!is_dropdown) {
if (type !== 0) {
a = g.querySelectorAll("polygon")[1];
configure_item(a , {
points: atom_arrow_points(width, height)
points: atom_arrow_points(width, height),
});
}
}
......
......@@ -2744,7 +2744,8 @@ void text_drawborder(t_text *x, t_glist *glist,
gui_vmess("gui_atom_redraw_border", "xsiii",
glist_getcanvas(glist),
tag,
pd_class(&x->te_pd) == dropdown_class ? 1 : 0,
pd_class(&x->te_pd) == dropdown_class ?
((t_dropdown *)x)->a_outtype + 1 : 0,
x2 - x1,
y2 - y1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment