mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Cleanup, add scanline mask builder
This commit is contained in:
@@ -233,15 +233,12 @@ OSErr LoadMusicSounds (void)
|
||||
if (theSound == nil)
|
||||
return (MemError());
|
||||
|
||||
HLock(theSound);
|
||||
soundDataSize = GetHandleSize(theSound) - 20L;
|
||||
HUnlock(theSound);
|
||||
|
||||
theMusicData[i] = NewPtr(soundDataSize);
|
||||
if (theMusicData[i] == nil)
|
||||
return (MemError());
|
||||
|
||||
HLock(theSound);
|
||||
BlockMove((Ptr)(static_cast<Byte*>(*theSound) + 20L), theMusicData[i], soundDataSize);
|
||||
ReleaseResource(theSound);
|
||||
}
|
||||
|
Reference in New Issue
Block a user