Cleanup, add scanline mask builder

This commit is contained in:
elasota
2019-12-26 12:58:58 -05:00
parent b10dda4a54
commit c4e93b0ccf
61 changed files with 823 additions and 494 deletions

View File

@@ -225,7 +225,6 @@ OSErr LoadTriggerSound (short soundID)
{
soundDataSize = GetHandleSize(theSound) - 20L;
theSoundData[kMaxSounds - 1] = NewPtr(soundDataSize);
HLock(theSound);
if (theSoundData[kMaxSounds - 1] == nil)
{
ReleaseResource(theSound);
@@ -268,15 +267,12 @@ OSErr LoadBufferSounds (void)
if (theSound == nil)
return (MemError());
HLock(theSound);
soundDataSize = GetHandleSize(theSound) - 20L;
HUnlock(theSound);
theSoundData[i] = NewPtr(soundDataSize);
if (theSoundData[i] == nil)
return (MemError());
HLock(theSound);
BlockMove((Ptr)((Byte*)(*theSound) + 20L), theSoundData[i], soundDataSize);
ReleaseResource(theSound);
}