aboutsummaryrefslogtreecommitdiff
path: root/src/w_breakpoints.h
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2008-05-14 22:24:09 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2008-05-14 22:24:09 +0000
commit94e2e7ba7e316f080c30c715cf4f2ebaf6584733 (patch)
tree012a04a2a3d98fe28fdd32b3692710f237065651 /src/w_breakpoints.h
parent3adbad6f33d27d9004f699779ca99fe0bfa2c5de (diff)
Fixed a bug in the width of breakpoints widget
svn path=/trunk/externals/tof/; revision=9805
Diffstat (limited to 'src/w_breakpoints.h')
-rwxr-xr-xsrc/w_breakpoints.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/w_breakpoints.h b/src/w_breakpoints.h
index a44d793..14c326b 100755
--- a/src/w_breakpoints.h
+++ b/src/w_breakpoints.h
@@ -9,9 +9,7 @@
#define BACKGROUNDCOLOR "grey86"
#define LINECOLOR "grey30"
-#ifndef BACKGROUNDWIDTH
-#define BACKGROUNDWIDTH "1"
-#endif
+
#define BORDER 2
@@ -238,11 +236,11 @@ static void breakpoints_create(t_breakpoints *x, t_glist *glist)
ypos = (int) text_ypix(&x->x_obj,glist);
x->w.numclock = clock_new(x, (t_method) breakpoints_delnum);
sys_vgui(".x%x.c create rectangle \
-%d %d %d %d -tags %xS -fill "BACKGROUNDCOLOR" -width "BACKGROUNDWIDTH"\n",
+%d %d %d %d -tags %xS -fill "BACKGROUNDCOLOR" -width %d\n",
glist_getcanvas(glist),
xpos-BORDER, ypos-BORDER,
xpos + x->w.width+2*BORDER, ypos + x->w.height+2*BORDER,
- x);
+ x,x->borderwidth);
xscale = x->w.width/x->duration[x->last_state];
yscale = x->w.height;