diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-08-21 17:46:52 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-08-21 17:46:52 +0000 |
commit | 4cde391f5f1ba80c803fc02adece857e5eb720f7 (patch) | |
tree | 29b4221f9cd35b5de5529e684b9e3f784c381feb /pd/src/g_template.c | |
parent | 0d4b66c7bc77f6a2fafb1debe548f8621d21cf70 (diff) |
Fixed scalar_redraw to check if glist is visible; moved 'data' doc and
updated it somewhat.
svn path=/trunk/; revision=3441
Diffstat (limited to 'pd/src/g_template.c')
-rw-r--r-- | pd/src/g_template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pd/src/g_template.c b/pd/src/g_template.c index b1046447..05cede66 100644 --- a/pd/src/g_template.c +++ b/pd/src/g_template.c @@ -2028,9 +2028,9 @@ static void drawnumber_getrect(t_gobj *z, t_glist *glist, return; } xloc = glist_xtopixels(glist, - basex + fielddesc_getfloat(&x->x_xloc, template, data, 0)); + basex + fielddesc_getcoord(&x->x_xloc, template, data, 0)); yloc = glist_ytopixels(glist, - basey + fielddesc_getfloat(&x->x_yloc, template, data, 0)); + basey + fielddesc_getcoord(&x->x_yloc, template, data, 0)); font = glist_getfont(glist); fontwidth = sys_fontwidth(font); fontheight = sys_fontheight(font); @@ -2078,9 +2078,9 @@ static void drawnumber_vis(t_gobj *z, t_glist *glist, { t_atom at; int xloc = glist_xtopixels(glist, - basex + fielddesc_getfloat(&x->x_xloc, template, data, 0)); + basex + fielddesc_getcoord(&x->x_xloc, template, data, 0)); int yloc = glist_ytopixels(glist, - basey + fielddesc_getfloat(&x->x_yloc, template, data, 0)); + basey + fielddesc_getcoord(&x->x_yloc, template, data, 0)); char colorstring[20], buf[DRAWNUMBER_BUFSIZE]; numbertocolor(fielddesc_getfloat(&x->x_color, template, data, 1), colorstring); |