From b02717e45be261ff1e9645f237a460c1167a2584 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 1 Aug 2011 17:35:10 +0000 Subject: replace .x%x 32-bit only canvas id with .x%lx canvas id which supports 32-bit and 64-bit svn path=/trunk/externals/pdogg/; revision=15186 --- oggamp~.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/oggamp~.c b/oggamp~.c index a9ff78b..80bac62 100644 --- a/oggamp~.c +++ b/oggamp~.c @@ -634,7 +634,7 @@ static void oggamp_child_dographics(t_oggamp *x) /* do graphics stuff :: create rectangle */ if ( x->x_graphic && glist_isvisible( x->x_canvas ) ) { - sys_vgui(".x%x.c create rectangle %d %d %d %d -fill lightblue -tags %xPBAR\n", + sys_vgui(".x%lx.c create rectangle %d %d %d %d -fill lightblue -tags %xPBAR\n", x->x_canvas, x->x_obj.te_xpix, x->x_obj.te_ypix-OBJHEIGHT-1, x->x_obj.te_xpix + OBJWIDTH, x->x_obj.te_ypix - 1, x ); } @@ -648,7 +648,7 @@ static void oggamp_child_updategraphics(t_oggamp *x) /* update graphical read status */ char color[32]; - sys_vgui(".x%x.c delete rectangle %xSTATUS\n", x->x_canvas, x); + sys_vgui(".x%lx.c delete rectangle %xSTATUS\n", x->x_canvas, x); if(x->x_fifobytes < (x->x_fifosize / 8)) { strcpy(color, "red"); @@ -657,7 +657,7 @@ static void oggamp_child_updategraphics(t_oggamp *x) { strcpy(color, "lightgreen"); } - sys_vgui(".x%x.c create rectangle %d %d %d %d -fill %s -tags %xSTATUS\n", + sys_vgui(".x%lx.c create rectangle %d %d %d %d -fill %s -tags %xSTATUS\n", x->x_canvas, x->x_obj.te_xpix, x->x_obj.te_ypix-OBJHEIGHT-1, x->x_obj.te_xpix+((x->x_fifobytes*OBJWIDTH)/x->x_fifosize), x->x_obj.te_ypix - 1, color, x); @@ -667,8 +667,8 @@ static void oggamp_child_delgraphics(t_oggamp *x) { if(x->x_graphic) /* delete graphics */ { - sys_vgui(".x%x.c delete rectangle %xPBAR\n", x->x_canvas, x ); - sys_vgui(".x%x.c delete rectangle %xSTATUS\n", x->x_canvas, x ); + sys_vgui(".x%lx.c delete rectangle %xPBAR\n", x->x_canvas, x ); + sys_vgui(".x%lx.c delete rectangle %xSTATUS\n", x->x_canvas, x ); } } -- cgit v1.2.1