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 | 095e10a6a17420dd31d1f5f592b639f100275057 (patch) | |
tree | 7b1c278604a4a5feeb896f9fe2ab4ab2d23393d5 /shared/toxy/scriptlet.c | |
parent | 47c48c71f7b95aee1347fa4e02c0de09eef1234d (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/miXed/; revision=15186
Diffstat (limited to 'shared/toxy/scriptlet.c')
-rw-r--r-- | shared/toxy/scriptlet.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shared/toxy/scriptlet.c b/shared/toxy/scriptlet.c index db836ab..622512e 100644 --- a/shared/toxy/scriptlet.c +++ b/shared/toxy/scriptlet.c @@ -238,7 +238,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, t_canvas *cv; if (cv = scriptlet_canvasvalidate(sp, visedonly)) { - sprintf(obuf, ".x%x.c.%s%x", (int)cv, sp->s_item->s_name, + sprintf(obuf, ".x%lx.c.%s%x", (int)cv, sp->s_item->s_name, (int)sp->s_owner); len = 1; } @@ -250,7 +250,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, t_canvas *cv; if (cv = scriptlet_canvasvalidate(sp, visedonly)) { - sprintf(obuf, ".x%x", (int)cv); + sprintf(obuf, ".x%lx", (int)cv); len = 1; } } @@ -284,7 +284,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, { glist = cv->gl_owner; if (glist && glist_isvisible(glist)) - sprintf(obuf, ".x%x", (int)glist); + sprintf(obuf, ".x%lx", (int)glist); else obuf[0] = 0; len = 7; @@ -293,7 +293,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, { glist = canvas_getrootfor(cv); if (glist && glist_isvisible(glist)) - sprintf(obuf, ".x%x", (int)glist); + sprintf(obuf, ".x%lx", (int)glist); else obuf[0] = 0; len = 5; @@ -303,7 +303,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, if (glist = canvas_getrootfor(cv)) glist = glist->gl_owner; if (glist && glist_isvisible(glist)) - sprintf(obuf, ".x%x", (int)glist); + sprintf(obuf, ".x%lx", (int)glist); else obuf[0] = 0; len = 6; @@ -313,7 +313,7 @@ static char *scriptlet_dedot(t_scriptlet *sp, char *ibuf, glist = cv; while (glist->gl_owner) glist = glist->gl_owner; if (glist && glist_isvisible(glist)) - sprintf(obuf, ".x%x", (int)glist); + sprintf(obuf, ".x%lx", (int)glist); else obuf[0] = 0; len = 4; |