aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_editor.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2006-08-15 04:54:15 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2006-08-15 04:54:15 +0000
commit067d2611b9e1041318f605091dc6e93936fa9ce5 (patch)
treedba59fccb6d070232ff0e17dbbdf1cefe752647f /pd/src/g_editor.c
parent7c232a7d3a14391fd4d4f58892cf89e294c87d62 (diff)
0.40 test 01 commit ... although the "about" dialog thinks it's test02 :)
svn path=/trunk/; revision=5604
Diffstat (limited to 'pd/src/g_editor.c')
-rw-r--r--pd/src/g_editor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index 13346779..1bbeacbf 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -821,7 +821,7 @@ void canvas_setgraph(t_glist *x, int flag, int nogoprect)
canvas_fixlinesfor(x->gl_owner, &x->gl_obj);
}
}
- else if (flag && !glist_isgraph(x))
+ else if (flag)
{
if (x->gl_pixwidth <= 0)
x->gl_pixwidth = GLIST_DEFGRAPHWIDTH;
@@ -832,6 +832,7 @@ void canvas_setgraph(t_glist *x, int flag, int nogoprect)
if (x->gl_owner && !x->gl_loading && glist_isvisible(x->gl_owner))
gobj_vis(&x->gl_gobj, x->gl_owner, 0);
x->gl_isgraph = 1;
+ x->gl_hidetext = !(!(flag&2));
if (!nogoprect && !x->gl_goprect)
{
t_gobj *g;
@@ -867,7 +868,7 @@ void canvas_properties(t_glist *x)
sprintf(graphbuf,
"pdtk_canvas_dialog %%s %g %g %d %g %g %g %g %d %d %d %d\n",
0., 0.,
- 1,
+ glist_isgraph(x) ,//1,
x->gl_x1, x->gl_y1, x->gl_x2, x->gl_y2,
(int)x->gl_pixwidth, (int)x->gl_pixheight,
(int)x->gl_xmargin, (int)x->gl_ymargin);
@@ -897,7 +898,7 @@ static void canvas_donecanvasdialog(t_glist *x,
xperpix = atom_getfloatarg(0, argc, argv);
yperpix = atom_getfloatarg(1, argc, argv);
- graphme = (atom_getfloatarg(2, argc, argv) != 0);
+ graphme = (int)(atom_getfloatarg(2, argc, argv));
x1 = atom_getfloatarg(3, argc, argv);
y1 = atom_getfloatarg(4, argc, argv);
x2 = atom_getfloatarg(5, argc, argv);