Skip to content

Commit

Permalink
[#40] Track Map (Part 37.3: Improved)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-nestorovic committed Jun 28, 2024
1 parent dc0932a commit a265d7d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Main/src/ViewTrackMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@
return 0;
nHeads=scanner.params.nHeads;
ti=*(TTrackInfo *)pTrackInfo; // take over TrackInfo from the Scanner
if (scanner.params.x<scanner.params.z)
scanner.scanNextTrack.SetEvent(); // don't waste time and scan the next Track while this Track is still being painted
} // - adjusting logical dimensions to accommodate the LongestTrack
int nBytesOnTrack=0;
for( TSector s=ti.nSectors; s>0; nBytesOnTrack+=ti.bufferLength[--s] );
Expand Down Expand Up @@ -417,10 +419,6 @@
}
::DeleteObject( ::SelectObject(dc,hPen0) );
}
// - next Track
EXCLUSIVELY_LOCK(scanner.params);
if (scanner.params.x<scanner.params.z)
scanner.scanNextTrack.SetEvent();
return 0;
}

Expand Down

0 comments on commit a265d7d

Please sign in to comment.