Commit 66e8df11 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

add my_canvas_class conditional in g_editor.c to disallow resize anchor, since...

add my_canvas_class conditional in g_editor.c to disallow resize anchor, since it abuses an extra label handle for resizing.
parent b136292c
......@@ -734,7 +734,7 @@ void scalehandle_draw_select2(t_iemgui *x) {
/* we're not drawing the scalehandle for the actual iemgui-- just
the one for the label. */
if (c == my_canvas_class)
scalehandle_draw_select(x->x_handle,sx-1,sy-1);
scalehandle_draw_select(x->x_handle,sx+8,sy+3);
if (x->x_lab != s_empty)
scalehandle_draw_select(x->x_lhandle,x->x_ldx,x->x_ldy);
}
......
......@@ -3306,9 +3306,16 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
int ninlet;
/* resize? only for "true" text boxes, canvases, iemguis,
and -- using an awful hack-- for the Scope~ object
by checking for the class name below */
by checking for the class name below.
One exception-- my_canvas. It has a weirdo interface
where the visual dimensions usually (i.e., by default)
extends well past the bounds of the bbox. For that reason
we have a virtual waterfall of conditionals flowing all
the way to the GUI just handle resizing a stupid rectangle.
*/
if (ob &&
(ob->te_iemgui
(ob->te_iemgui && pd_class((t_pd *)ob) != my_canvas_class
|| pd_class(&ob->te_pd)->c_name == gensym("Scope~"))
&& xpos >= x2-4 && ypos > y2-6)
{
......
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