Fix lead-in sector painting by removing negative block conversion

This commit is contained in:
2025-10-24 01:53:35 +01:00
parent cd67c2a7a7
commit cf988b9d63

View File

@@ -138,7 +138,7 @@ partial class Dump
gotFirstTrackPregap = true;
firstTrackPregapSectorsGood++;
totalDuration += cmdDuration;
(_mediaGraph as Spiral)?.PaintCdLeadInSector((ulong)(firstTrackPregapBlock * -1), SKColors.Green);
(_mediaGraph as Spiral)?.PaintCdLeadInSector(firstTrackPregapBlock, SKColors.Green);
}
else
{
@@ -160,7 +160,7 @@ partial class Dump
}
else if(gotFirstTrackPregap) firstTrackPregapMs.Write(new byte[blockSize], 0, (int)blockSize);
(_mediaGraph as Spiral)?.PaintCdLeadInSector((ulong)(firstTrackPregapBlock * -1), SKColors.Red);
(_mediaGraph as Spiral)?.PaintCdLeadInSector(firstTrackPregapBlock, SKColors.Red);
}
sectorSpeedStart++;