* Taseditor: fixed lost_position logic
This commit is contained in:
parent
9112c4919d
commit
441c804dbe
|
@ -92,8 +92,6 @@ bool EnterTasEditor()
|
||||||
// "Set high-priority thread"
|
// "Set high-priority thread"
|
||||||
eoptions |= EO_HIGHPRIO;
|
eoptions |= EO_HIGHPRIO;
|
||||||
DoPriority();
|
DoPriority();
|
||||||
// clear "Disable speed throttling"
|
|
||||||
eoptions &= ~EO_NOTHROTTLE;
|
|
||||||
// switch off autosaves
|
// switch off autosaves
|
||||||
saved_EnableAutosave = EnableAutosave;
|
saved_EnableAutosave = EnableAutosave;
|
||||||
EnableAutosave = 0;
|
EnableAutosave = 0;
|
||||||
|
|
|
@ -483,7 +483,7 @@ bool PLAYBACK::JumpToFrame(int index)
|
||||||
|
|
||||||
void PLAYBACK::SetLostPosition(int frame)
|
void PLAYBACK::SetLostPosition(int frame)
|
||||||
{
|
{
|
||||||
if ((lost_position_frame - 1 < frame) || (lost_position_frame - 1 > frame && !lost_position_is_stable))
|
if ((lost_position_frame - 1 < frame) || (lost_position_frame - 1 >= frame && !lost_position_is_stable))
|
||||||
{
|
{
|
||||||
if (lost_position_frame)
|
if (lost_position_frame)
|
||||||
piano_roll.RedrawRow(lost_position_frame - 1);
|
piano_roll.RedrawRow(lost_position_frame - 1);
|
||||||
|
|
Loading…
Reference in New Issue