mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
push2: vector, not map
This commit is contained in:
parent
6627d24c2b
commit
06abdb4c4e
3 changed files with 10 additions and 7 deletions
|
|
@ -38,10 +38,12 @@ Push2::build_maps ()
|
|||
|
||||
boost::shared_ptr<Pad> pad;
|
||||
|
||||
_xy_pad_map.assign (64, boost::shared_ptr<Pad>());
|
||||
|
||||
#define MAKE_PAD(x,y,nn) \
|
||||
pad.reset (new Pad ((x), (y), (nn))); \
|
||||
_nn_pad_map.insert (std::make_pair (pad->extra(), pad)); \
|
||||
_xy_pad_map.insert (std::make_pair (y * 8 + x, pad));
|
||||
_xy_pad_map[y * 8 + x] = pad;
|
||||
|
||||
MAKE_PAD (0, 0, 92);
|
||||
MAKE_PAD (0, 1, 93);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue