mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Output images now get geometry specs to indicate what kind of file to write.
This commit is contained in:
@@ -18,8 +18,9 @@ Sector* SectorSet::get(int track, int head, int sector) const
|
||||
return i->second.get();
|
||||
}
|
||||
|
||||
void SectorSet::calculateSize(int& numTracks, int& numHeads, int& numSectors,
|
||||
int& sectorSize) const
|
||||
void SectorSet::calculateSize(
|
||||
unsigned& numTracks, unsigned& numHeads,
|
||||
unsigned& numSectors, unsigned& sectorSize) const
|
||||
{
|
||||
numTracks = numHeads = numSectors = sectorSize = 0;
|
||||
|
||||
@@ -28,10 +29,10 @@ void SectorSet::calculateSize(int& numTracks, int& numHeads, int& numSectors,
|
||||
auto& sector = i.second;
|
||||
if (sector)
|
||||
{
|
||||
numTracks = std::max(numTracks, sector->logicalTrack+1);
|
||||
numHeads = std::max(numHeads, sector->logicalSide+1);
|
||||
numSectors = std::max(numSectors, sector->logicalSector+1);
|
||||
sectorSize = std::max(sectorSize, (int)sector->data.size());
|
||||
numTracks = std::max(numTracks, (unsigned)sector->logicalTrack+1);
|
||||
numHeads = std::max(numHeads, (unsigned)sector->logicalSide+1);
|
||||
numSectors = std::max(numSectors, (unsigned)sector->logicalSector+1);
|
||||
sectorSize = std::max(sectorSize, (unsigned)sector->data.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user