Commit bd1372ba authored by Ivica Bukvic's avatar Ivica Bukvic Committed by Hans-Christoph Steiner
Browse files

Pd-0.42.5-extended-l2ork-dev-20110404.tar.bz2

parent 558876b3
......@@ -934,6 +934,27 @@ void canvas_deletelinesfor(t_canvas *x, t_text *text)
}
}
/* delete all lines for the object
for efficient redrawing of connections */
void canvas_eraselinesfor(t_canvas *x, t_text *text)
{
t_linetraverser t;
t_outconnect *oc;
linetraverser_start(&t, x);
while (oc = linetraverser_next(&t))
{
if (t.tr_ob == text || t.tr_ob2 == text)
{
if (x->gl_editor)
{
sys_vgui(".x%lx.c delete l%lx\n",
glist_getcanvas(x), oc);
}
}
}
}
/* kill all lines for one inlet or outlet */
void canvas_deletelinesforio(t_canvas *x, t_text *text,
t_inlet *inp, t_outlet *outp)
......
......@@ -479,6 +479,7 @@ EXTERN t_symbol *canvas_makebindsym(t_symbol *s);
EXTERN void canvas_vistext(t_canvas *x, t_text *y);
EXTERN void canvas_fixlinesfor(t_canvas *x, t_text *text);
EXTERN void canvas_deletelinesfor(t_canvas *x, t_text *text);
EXTERN void canvas_eraselinesfor(t_canvas *x, t_text *text);
EXTERN void canvas_stowconnections(t_canvas *x);
EXTERN void canvas_restoreconnections(t_canvas *x);
EXTERN void canvas_redraw(t_canvas *x);
......
......@@ -413,7 +413,7 @@ void magicGlass_free(t_magicGlass *x)
void magicGlass_setup(void)
{
magicGlass_class = class_new(gensym("magicGlass"),
(t_newmethod)magicGlass_new,
0,
(t_method)magicGlass_free,
sizeof(t_magicGlass),
0,
......
......@@ -89,6 +89,7 @@ void canvas_getargs(int *argcp, t_atom **argvp);
static void canvas_objtext(t_glist *gl, int xpix, int ypix, int selected,
t_binbuf *b)
{
//fprintf(stderr,"objtext\n");
t_text *x;
int argc;
t_atom *argv;
......@@ -1749,6 +1750,7 @@ void text_setto(t_text *x, t_glist *glist, char *buf, int bufsize)
else /* normally, just destroy the old one and make a new one. */
{
int xwas = x->te_xpix, ywas = x->te_ypix;
canvas_eraselinesfor(glist, x);
glist_delete(glist, &x->te_g);
canvas_objtext(glist, xwas, ywas, 0, b);
/* if it's an abstraction loadbang it here */
......
......@@ -11,7 +11,7 @@ extern "C" {
#define PD_MAJOR_VERSION 0
#define PD_MINOR_VERSION 42
#define PD_BUGFIX_VERSION 5
#define PD_TEST_VERSION "extended-l2ork-20110403"
#define PD_TEST_VERSION "extended-l2ork-20110404"
/* old name for "MSW" flag -- we have to take it for the sake of many old
"nmakefiles" for externs, which will define NT and not MSW */
......
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