* Taseditor: changed "lost_position" logic
This commit is contained in:
parent
1d761114b6
commit
8319946675
|
@ -397,8 +397,9 @@ void GREENZONE::InvalidateAndCheck(int after)
|
|||
if (currFrameCounter >= greenZoneCount)
|
||||
{
|
||||
// remember the lost position
|
||||
if (playback.lost_position_frame-1 < currFrameCounter)
|
||||
playback.lost_position_frame = currFrameCounter + 1;
|
||||
if (playback.lost_position_frame && playback.lost_position_frame != currFrameCounter + 1)
|
||||
piano_roll.RedrawRow(playback.lost_position_frame - 1);
|
||||
playback.lost_position_frame = currFrameCounter + 1;
|
||||
// auto-restore position if needed
|
||||
if (taseditor_config.restore_position)
|
||||
playback.RestorePosition();
|
||||
|
|
|
@ -137,7 +137,7 @@ void PLAYBACK::update()
|
|||
}
|
||||
|
||||
// forget lost_position_frame when the position is restored
|
||||
if (currFrameCounter + 1 == lost_position_frame)
|
||||
if (currFrameCounter + 1 >= lost_position_frame)
|
||||
lost_position_frame = 0;
|
||||
|
||||
// pause when seeking hit pause_frame
|
||||
|
|
Loading…
Reference in New Issue