Made code compile with vs2012
This commit is contained in:
parent
81146a8753
commit
ee9056c130
@ -1195,6 +1195,7 @@ static void onInterpolation()
|
|||||||
static void onInvertSelection()
|
static void onInvertSelection()
|
||||||
{
|
{
|
||||||
int track, row, rowCount;
|
int track, row, rowCount;
|
||||||
|
CopyEntry* entries;
|
||||||
TrackViewInfo* viewInfo = getTrackViewInfo();
|
TrackViewInfo* viewInfo = getTrackViewInfo();
|
||||||
struct sync_track** tracks = getTracks();
|
struct sync_track** tracks = getTracks();
|
||||||
const int selectLeft = mini(viewInfo->selectStartTrack, viewInfo->selectStopTrack);
|
const int selectLeft = mini(viewInfo->selectStartTrack, viewInfo->selectStopTrack);
|
||||||
@ -1206,17 +1207,17 @@ static void onInvertSelection()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
rowCount = (selectBottom - selectTop) + 1;
|
rowCount = (selectBottom - selectTop) + 1;
|
||||||
CopyEntry* entries = malloc(rowCount * sizeof(CopyEntry));
|
entries = malloc(rowCount * sizeof(CopyEntry));
|
||||||
|
|
||||||
Commands_beginMulti("invertSelection");
|
Commands_beginMulti("invertSelection");
|
||||||
|
|
||||||
for (track = selectLeft; track <= selectRight; ++track)
|
for (track = selectLeft; track <= selectRight; ++track)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
memset(entries, 0, rowCount * sizeof(CopyEntry));
|
|
||||||
|
|
||||||
struct sync_track* t = tracks[track];
|
struct sync_track* t = tracks[track];
|
||||||
|
|
||||||
|
memset(entries, 0, rowCount * sizeof(CopyEntry));
|
||||||
|
|
||||||
// Take a copy of the data and delete the keys
|
// Take a copy of the data and delete the keys
|
||||||
|
|
||||||
for (i = 0, row = selectTop; row <= selectBottom; ++row, ++i)
|
for (i = 0, row = selectTop; row <= selectBottom; ++row, ++i)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user