Commit 2d999592 authored by pokergaming's avatar pokergaming
Browse files

make ds array elements show up properly, plus some stray formatting improvements

parent aad46cbb
......@@ -5184,7 +5184,7 @@ extern void graph_checkgop_rect(t_gobj *z, t_glist *glist,
void canvas_motion(t_canvas *x, t_floatarg xpos, t_floatarg ypos,
t_floatarg fmod)
{
{
//fprintf(stderr,"motion %d %d %d %d\n",
// (int)xpos, (int)ypos, (int)fmod, canvas_last_glist_mod);
//fprintf(stderr,"canvas_motion=%d\n",x->gl_editor->e_onmotion);
......
......@@ -803,7 +803,7 @@ int text_ypix(t_text *x, t_glist *glist)
This is too conservative -- for instance, when you draw an "open"
rectangle on the parent, you shouldn't have to redraw the window! */
void glist_redraw(t_glist *x)
{
{
if (glist_isvisible(x))
{
/* LATER fix the graph_vis() code to handle both cases */
......
......@@ -833,7 +833,6 @@ int scalar_groupclick(struct _glist *groupcanvas,
if (pd_class(&y->g_pd) == canvas_class &&
((t_glist *)y)->gl_svg)
{
// fprintf(stderr, "fuck dolphins");
if (hit = scalar_groupclick((t_glist *)y, data, template, sc, ap,
owner, xloc, yloc, xpix, ypix,
shift, alt, dbl, doit, basex, basey))
......
......@@ -5121,14 +5121,16 @@ static void plot_vis(t_gobj *z, t_glist *glist, t_glist *parentglist,
fielddesc_cvttocoord(yfielddesc, yval);
for (y = elemtemplatecanvas->gl_list; y; y = y->g_next)
{
/* We're setting up a special group that will get set as
the parent by array elements */
sys_vgui(".x%lx.c create group -tags {.scelem%lx.%lx} "
"-parent {.dgroup%lx.%lx}\n",
glist_getcanvas(glist), elemtemplatecanvas,
(t_word *)(elem + elemsize * i),
x->x_canvas, data);
if (pd_class(&y->g_pd) == canvas_class &&
((t_glist *)y)->gl_svg)
{
sys_vgui(".x%lx.c create group -tags {.scelem%lx.%lx} "
"-parent {.dgroup%lx.%lx}\n",
glist_getcanvas(glist), elemtemplatecanvas,
(t_word *)(elem + elemsize * i),
x->x_canvas, data);
plot_groupvis(sc, glist,
(t_word *)(elem + elemsize * i),
template, (t_glist *)y,
......
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