static int row_cb(int absrow, int relrow, int y, void *data) { (void)data; draw_chan(absrow*2, relrow, y); if(absrow*2+1 < cp->num_bars) draw_chan(absrow*2+1, relrow, y); return 0; }
static int row_cb(int absrow, int relrow, int y, void *data) { (void)data; int idx = absrow * NUM_BARS_PER_ROW; draw_chan(idx, relrow, y); if(idx+1 < cp->num_bars) draw_chan(idx+1, relrow, y); return 0; }