diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-08-01 17:35:10 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-08-01 17:35:10 +0000 |
commit | b02717e45be261ff1e9645f237a460c1167a2584 (patch) | |
tree | 8cd20dba73412d7a6c1d8a3ed0bf15b8e6b7d9cc | |
parent | d6d948c60ed0c002c85732fef32882b22763c393 (diff) |
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
-rw-r--r-- | oggamp~.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 );
}
}
|