diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/extra/gcanvas.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/extra/gcanvas.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/pdbox/PDa/extra/gcanvas.c b/apps/plugins/pdbox/PDa/extra/gcanvas.c index 99f5d3de71..1d40fd207e 100644 --- a/apps/plugins/pdbox/PDa/extra/gcanvas.c +++ b/apps/plugins/pdbox/PDa/extra/gcanvas.c | |||
@@ -135,7 +135,7 @@ void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime) | |||
135 | x->x_obj.te_ypix + x->x_height*i/x->x_ygrid, | 135 | x->x_obj.te_ypix + x->x_height*i/x->x_ygrid, |
136 | x->x_width, 0); | 136 | x->x_width, 0); |
137 | } | 137 | } |
138 | 138 | #ifndef ROCKBOX | |
139 | { | 139 | { |
140 | /* outlets */ | 140 | /* outlets */ |
141 | int n = 3; | 141 | int n = 3; |
@@ -143,7 +143,6 @@ void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime) | |||
143 | nplus = (n == 1 ? 1 : n-1); | 143 | nplus = (n == 1 ? 1 : n-1); |
144 | for (i = 0; i < n; i++) | 144 | for (i = 0; i < n; i++) |
145 | { | 145 | { |
146 | #ifndef ROCKBOX | ||
147 | int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; | 146 | int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; |
148 | if (firsttime) | 147 | if (firsttime) |
149 | sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xo%d\n", | 148 | sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xo%d\n", |
@@ -156,14 +155,12 @@ void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime) | |||
156 | glist_getcanvas(glist), x, i, | 155 | glist_getcanvas(glist), x, i, |
157 | onset, x->x_obj.te_ypix + x->x_height - 1, | 156 | onset, x->x_obj.te_ypix + x->x_height - 1, |
158 | onset + IOWIDTH, x->x_obj.te_ypix + x->x_height); | 157 | onset + IOWIDTH, x->x_obj.te_ypix + x->x_height); |
159 | #endif /* ROCKBOX */ | ||
160 | } | 158 | } |
161 | /* inlets */ | 159 | /* inlets */ |
162 | n = 0; | 160 | n = 0; |
163 | nplus = (n == 1 ? 1 : n-1); | 161 | nplus = (n == 1 ? 1 : n-1); |
164 | for (i = 0; i < n; i++) | 162 | for (i = 0; i < n; i++) |
165 | { | 163 | { |
166 | #ifndef ROCKBOX | ||
167 | int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; | 164 | int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; |
168 | if (firsttime) | 165 | if (firsttime) |
169 | sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xi%d\n", | 166 | sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xi%d\n", |
@@ -176,10 +173,9 @@ void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime) | |||
176 | glist_getcanvas(glist), x, i, | 173 | glist_getcanvas(glist), x, i, |
177 | onset, x->x_obj.te_ypix, | 174 | onset, x->x_obj.te_ypix, |
178 | onset + IOWIDTH, x->x_obj.te_ypix + 1); | 175 | onset + IOWIDTH, x->x_obj.te_ypix + 1); |
179 | #endif /* ROCKBOX */ | ||
180 | } | 176 | } |
181 | } | 177 | } |
182 | 178 | #endif /* ROCKBOX */ | |
183 | } | 179 | } |
184 | 180 | ||
185 | 181 | ||