aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_hdial.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2005-08-16 04:06:28 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2005-08-16 04:06:28 +0000
commit8892fb6aabcbfd2c4695c154c22751b5fe5c9004 (patch)
treebd44e093cbc928e32560f70d4ca64fd593d5dc3c /pd/src/g_hdial.c
parentccd93386bb8edff9991df8d8cabf71b73039c5e3 (diff)
Configure.in was broken. Also, better GUI update queueing for
IEM guis and for 'data' (which should affect arrays.) svn path=/trunk/; revision=3430
Diffstat (limited to 'pd/src/g_hdial.c')
-rw-r--r--pd/src/g_hdial.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/pd/src/g_hdial.c b/pd/src/g_hdial.c
index 3da1ef71..5f37fbed 100644
--- a/pd/src/g_hdial.c
+++ b/pd/src/g_hdial.c
@@ -31,18 +31,20 @@ static t_class *hradio_class, *hradio_old_class;
/* widget helper functions */
-void hradio_draw_update(t_hradio *x, t_glist *glist)
+void hradio_draw_update(t_gobj *client, t_glist *glist)
{
+ t_hradio *x = (t_hradio *)client;
if(glist_isvisible(glist))
{
t_canvas *canvas=glist_getcanvas(glist);
sys_vgui(".x%lx.c itemconfigure %lxBUT%d -fill #%6.6x -outline #%6.6x\n",
- canvas, x, x->x_on_old,
+ canvas, x, x->x_drawn,
x->x_gui.x_bcol, x->x_gui.x_bcol);
sys_vgui(".x%lx.c itemconfigure %lxBUT%d -fill #%6.6x -outline #%6.6x\n",
canvas, x, x->x_on,
x->x_gui.x_fcol, x->x_gui.x_fcol);
+ x->x_drawn = x->x_on;
}
}
@@ -68,6 +70,7 @@ void hradio_draw_new(t_hradio *x, t_glist *glist)
xx11 += dx;
xx21 += dx;
xx22 += dx;
+ x->x_drawn = x->x_on;
}
sys_vgui(".x%lx.c create text %d %d -text {%s} -anchor w \
-font {%s %d bold} -fill #%6.6x -tags %lxLABEL\n",
@@ -204,7 +207,7 @@ void hradio_draw_select(t_hradio* x, t_glist* glist)
void hradio_draw(t_hradio *x, t_glist *glist, int mode)
{
if(mode == IEM_GUI_DRAW_MODE_UPDATE)
- hradio_draw_update(x, glist);
+ sys_queuegui(x, glist, hradio_draw_update);
else if(mode == IEM_GUI_DRAW_MODE_MOVE)
hradio_draw_move(x, glist);
else if(mode == IEM_GUI_DRAW_MODE_NEW)