Commit dc1ae32b authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

revised Ivica's fudge factors to get iemguis in a gop to show up correctly in legacy mode

parent 71cad3e0
......@@ -479,7 +479,7 @@ static void *bng_new(t_symbol *s, int argc, t_atom *argv)
x->x_gui.x_changed = -1;
x->x_gui.legacy_x = 0;
x->x_gui.legacy_y = 2;
x->x_gui.legacy_y = 0;
//x->x_gui.click_x = 1;
//x->x_gui.click_y = 2;
......
......@@ -385,7 +385,7 @@ static void *my_canvas_new(t_symbol *s, int argc, t_atom *argv)
x->x_gui.x_obj.te_iemgui = 1;
x->x_gui.legacy_x = 0;
x->x_gui.legacy_y = 2;
x->x_gui.legacy_y = 0;
return (x);
}
......
......@@ -838,7 +838,7 @@ static void *my_numbox_new(t_symbol *s, int argc, t_atom *argv)
x->x_gui.x_changed = 0;
x->x_gui.legacy_x = 0;
x->x_gui.legacy_y = 2;
x->x_gui.legacy_y = 0;
return (x);
}
......
......@@ -534,7 +534,7 @@ static void *radio_new(t_symbol *s, int argc, t_atom *argv)
x->x_gui.x_obj.te_iemgui = 1;
x->x_gui.legacy_x = 0;
x->x_gui.legacy_y = 2;
x->x_gui.legacy_y = 0;
return (x);
}
......
......@@ -598,10 +598,10 @@ static void *slider_new(t_symbol *s, int argc, t_atom *argv)
if (x->x_orient)
{
x->x_gui.legacy_x = 0;
x->x_gui.legacy_y = 0;
x->x_gui.legacy_y = -2;
} else {
x->x_gui.legacy_x = -3;
x->x_gui.legacy_y = 2;
x->x_gui.legacy_y = 0;
}
......
......@@ -397,7 +397,7 @@ static void *toggle_new(t_symbol *s, int argc, t_atom *argv)
x->x_gui.x_changed = 1;
x->x_gui.legacy_x = 0;
x->x_gui.legacy_y = 2;
x->x_gui.legacy_y = 0;
//x->x_gui.click_x = 1;
//x->x_gui.click_y = 2;
......
......@@ -450,7 +450,8 @@ static void vu_getrect(t_gobj *z, t_glist *glist,
iemgui_label_getrect(x->x_gui, glist, xp1, yp1, xp2, yp2);
if (x->x_scale)
/* In legacy mode we don't include the scale in the rect */
if (x->x_scale && !sys_legacy)
{
//vu has custom scale all labels unlike other iemgui object
end=x1+x->x_gui.x_w+4;
......@@ -748,7 +749,7 @@ static void *vu_new(t_symbol *s, int argc, t_atom *argv)
x->x_gui.x_obj.te_iemgui = 1;
x->x_gui.legacy_x = -1;
x->x_gui.legacy_y = 0;
x->x_gui.legacy_y = -2;
return (x);
}
......
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