aboutsummaryrefslogtreecommitdiff
path: root/gui/w_envgen.h
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2002-11-26 12:35:23 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2002-11-26 12:35:23 +0000
commitcfed7d1ee29299c9d25658c6fb155ffb13c757d4 (patch)
treed547bdd0b30472224948065dc9f6863eb2512f1d /gui/w_envgen.h
parent4f3d739780d9de34f51844063f3cb3de50519e4e (diff)
warning reduction
svn path=/trunk/externals/ggee/; revision=255
Diffstat (limited to 'gui/w_envgen.h')
-rwxr-xr-xgui/w_envgen.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/w_envgen.h b/gui/w_envgen.h
index 88c0c6b..7b89939 100755
--- a/gui/w_envgen.h
+++ b/gui/w_envgen.h
@@ -212,7 +212,7 @@ int i;
xscale = x->w.width/x->duration[x->last_state];
yscale = x->w.height;
- sprintf(buf,".x%x.c coords %xP",(unsigned int)glist_getcanvas(glist),x);
+ sprintf(buf,".x%x.c coords %pP",(unsigned int)glist_getcanvas(glist),x);
xpos = x->x_obj.te_xpix;
ypos = (int) (x->x_obj.te_ypix + x->w.height);
for (i=0;i<=x->last_state;i++) {
@@ -403,7 +403,8 @@ void envgen_click(t_envgen *x,
x->w.grabbed = envgen_next_doodle(x,xpos,ypos);
#if (PD_VERSION_MINOR > 31)
- glist_grab(x->w.glist, &x->x_obj.te_g, envgen_motion, envgen_key, xpos, ypos);
+ glist_grab(x->w.glist, &x->x_obj.te_g, (t_glistmotionfn) envgen_motion,
+ (t_glistkeyfn) envgen_key, xpos, ypos);
#else
glist_grab(x->w.glist, &x->x_obj.te_g, xpos, ypos);
#endif