cleanup, fix warnings

This commit is contained in:
Glenn Maynard
2004-02-27 00:55:25 +00:00
parent ddc2c030d0
commit 0a8899f4d8
+2 -2
View File
@@ -1449,10 +1449,10 @@ void NoteDataUtil::ScaleRegion( NoteData &nd, float fScale, float fStartBeat, fl
const int iScaledFirstRowAfterRegion = (int)((fStartBeat + (fEndBeat - fStartBeat) * fScale) * ROWS_PER_BEAT); const int iScaledFirstRowAfterRegion = (int)((fStartBeat + (fEndBeat - fStartBeat) * fScale) * ROWS_PER_BEAT);
if( fStartBeat != 0 ) if( fStartBeat != 0 )
temp1.CopyRange( &nd, 0, fStartBeat * ROWS_PER_BEAT ); temp1.CopyRange( &nd, 0, BeatToNoteRowNotRounded(fStartBeat) );
if( nd.GetLastRow() > iFirstRowAtEndOfRegion ) if( nd.GetLastRow() > iFirstRowAtEndOfRegion )
temp1.CopyRange( &nd, iFirstRowAtEndOfRegion, nd.GetLastRow(), iScaledFirstRowAfterRegion); temp1.CopyRange( &nd, iFirstRowAtEndOfRegion, nd.GetLastRow(), iScaledFirstRowAfterRegion);
temp2.CopyRange( &nd, fStartBeat * ROWS_PER_BEAT, iFirstRowAtEndOfRegion ); temp2.CopyRange( &nd, BeatToNoteRowNotRounded(fStartBeat), iFirstRowAtEndOfRegion );
nd.ClearAll(); nd.ClearAll();
for( int r=0; r<=temp2.GetLastRow(); r++ ) for( int r=0; r<=temp2.GetLastRow(); r++ )