diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index ef461b1cbfc77ae222240ebfd25a4cf03a4965ab..6f524ba491b14614d53b05c3d26e57be7520f261 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -2659,7 +2659,7 @@ function gui_gobj_deselect(cid, tag) { }); } -function gui_gobj_setdirty(cid, tag, state) { +function gui_gobj_dirty(cid, tag, state) { var color; switch (state) { case 1: @@ -2677,6 +2677,10 @@ function gui_gobj_setdirty(cid, tag, state) { }); } +function gui_canvas_multipledirty(cid, state) { + post("gui_canvas_multipledirty " + state + ": CALLED"); +} + function gui_canvas_emphasize(cid) { gui(cid).get_elem("patchsvg", function(e) { // raise the window diff --git a/pd/src/g_canvas.c b/pd/src/g_canvas.c index 449344a6dd6f4edbe85652f5fe9b49e313ad20aa..ef0f85e6a58b3a3a00b51d5fa0314e91ffb61640 100644 --- a/pd/src/g_canvas.c +++ b/pd/src/g_canvas.c @@ -786,7 +786,7 @@ void canvas_reflecttitle(t_canvas *x) namebuf, canvas_getdir(x)->s_name, x->gl_dirty); } -void gobj_isdirty(t_glist *g, t_gobj *x, int on); +void gobj_dirty(t_glist *g, t_gobj *x, int on); /* mark a glist dirty or clean */ void canvas_dirty(t_canvas *x, t_floatarg n) @@ -801,14 +801,14 @@ void canvas_dirty(t_canvas *x, t_floatarg n) canvas_reflecttitle(x2); if (x2->gl_owner) { - gobj_isdirty(x2->gl_owner, &x2->gl_gobj, + gobj_dirty(x2->gl_owner, &x2->gl_gobj, (x2->gl_dirty ? 1 : (x2->gl_subdirties ? 2 : 0))); x2 = x2->gl_owner; while(x2->gl_owner) { x2->gl_subdirties += (n ? 1 : -1); if(!x2->gl_dirty) - gobj_isdirty(x2->gl_owner, &x2->gl_gobj, (x2->gl_subdirties ? 2 : 0)); + gobj_dirty(x2->gl_owner, &x2->gl_gobj, (x2->gl_subdirties ? 2 : 0)); x2 = x2->gl_owner; } } diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index 6a89835f42defc507a7bba43d809ca2cc76f789f..b734973d5e9805b1e1fe31a78d7fd2caab7600ce 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -5946,10 +5946,15 @@ static void gobj_emphasize(t_glist *g, t_gobj *x) gui_vmess("gui_gobj_emphasize", "xs", g, rtext_gettag(y)); } -void gobj_isdirty(t_glist *g, t_gobj *x, int on) +void gobj_dirty(t_glist *g, t_gobj *x, int on) { t_rtext *y = glist_findrtext(g, (t_text *)x); - gui_vmess("gui_gobj_setdirty", "xsi", g, rtext_gettag(y), on); + gui_vmess("gui_gobj_dirty", "xsi", g, rtext_gettag(y), on); +} + +void canvas_multipledirty(t_glist *g, int on) +{ + gui_vmess("gui_canvas_multipledirty", "xi", g, on); } static int glist_dofinderror(t_glist *gl, void *error_object) diff --git a/pd/src/g_text.c b/pd/src/g_text.c index b8c25cafd5a108e580ae27df11b8d7679da71c3d..41e793bc34b1c5932f4bcce18016603aeb79189e 100644 --- a/pd/src/g_text.c +++ b/pd/src/g_text.c @@ -2125,9 +2125,9 @@ static void text_vis(t_gobj *z, t_glist *glist, int vis) if(pd_class(&x->te_pd) == canvas_class) { if (((t_canvas *)x)->gl_dirty) - gobj_isdirty(glist, x, 1); + gobj_dirty(glist, x, 1); else if (((t_canvas *)x)->gl_subdirties) - gobj_isdirty(glist, x, 2); + gobj_dirty(glist, x, 2); } } }