diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/g_template.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/g_template.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_template.c b/apps/plugins/pdbox/PDa/src/g_template.c index e73ca3ef5a..0245158fce 100644 --- a/apps/plugins/pdbox/PDa/src/g_template.c +++ b/apps/plugins/pdbox/PDa/src/g_template.c | |||
@@ -1398,7 +1398,10 @@ static void plot_vis(t_gobj *z, t_glist *glist, | |||
1398 | { | 1398 | { |
1399 | char outline[20]; | 1399 | char outline[20]; |
1400 | int lastpixel = -1, ndrawn = 0; | 1400 | int lastpixel = -1, ndrawn = 0; |
1401 | float xsum, yval = 0, wval = 0, xpix; | 1401 | float xsum, yval = 0, xpix; |
1402 | #ifndef ROCKBOX | ||
1403 | float wval = 0; | ||
1404 | #endif | ||
1402 | int ixpix = 0, i; | 1405 | int ixpix = 0, i; |
1403 | 1406 | ||
1404 | /* draw the trace */ | 1407 | /* draw the trace */ |
@@ -1422,7 +1425,9 @@ static void plot_vis(t_gobj *z, t_glist *glist, | |||
1422 | if (yonset >= 0) | 1425 | if (yonset >= 0) |
1423 | yval = *(float *)((elem + elemsize * i) + yonset); | 1426 | yval = *(float *)((elem + elemsize * i) + yonset); |
1424 | else yval = 0; | 1427 | else yval = 0; |
1428 | #ifndef ROCKBOX | ||
1425 | wval = *(float *)((elem + elemsize * i) + wonset); | 1429 | wval = *(float *)((elem + elemsize * i) + wonset); |
1430 | #endif | ||
1426 | xpix = glist_xtopixels(glist, basex + usexloc); | 1431 | xpix = glist_xtopixels(glist, basex + usexloc); |
1427 | ixpix = xpix + 0.5; | 1432 | ixpix = xpix + 0.5; |
1428 | if (xonset >= 0 || ixpix != lastpixel) | 1433 | if (xonset >= 0 || ixpix != lastpixel) |
@@ -1447,7 +1452,9 @@ static void plot_vis(t_gobj *z, t_glist *glist, | |||
1447 | if (yonset >= 0) | 1452 | if (yonset >= 0) |
1448 | yval = *(float *)((elem + elemsize * i) + yonset); | 1453 | yval = *(float *)((elem + elemsize * i) + yonset); |
1449 | else yval = 0; | 1454 | else yval = 0; |
1455 | #ifndef ROCKBOX | ||
1450 | wval = *(float *)((elem + elemsize * i) + wonset); | 1456 | wval = *(float *)((elem + elemsize * i) + wonset); |
1457 | #endif | ||
1451 | xpix = glist_xtopixels(glist, basex + usexloc); | 1458 | xpix = glist_xtopixels(glist, basex + usexloc); |
1452 | ixpix = xpix + 0.5; | 1459 | ixpix = xpix + 0.5; |
1453 | if (xonset >= 0 || ixpix != lastpixel) | 1460 | if (xonset >= 0 || ixpix != lastpixel) |