* Taseditor: changed "lost_position" logic

This commit is contained in:
ansstuff 2012-03-24 16:03:34 +00:00
parent 1d761114b6
commit 8319946675
2 changed files with 4 additions and 3 deletions

View File

@ -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();

View File

@ -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