File system refactoring

This commit is contained in:
elasota
2019-12-29 06:38:18 -05:00
parent b24505164d
commit 430842d17b
74 changed files with 874 additions and 1240 deletions

View File

@@ -717,14 +717,14 @@ Boolean QueryNewRoom (void)
void CreateNailOffscreen (void)
{
CGrafPtr wasCPort;
OSErr theErr;
PLError_t theErr;
if (nailSrcMap == nil)
{
wasCPort = GetGraphicsPort();
QSetRect(&nailSrcRect, 0, 0, kMapRoomWidth, kMapRoomHeight * (kNumBackgrounds + 1));
theErr = CreateOffScreenGWorld(&nailSrcMap, &nailSrcRect, kPreferredDepth);
theErr = CreateOffScreenGWorld(&nailSrcMap, &nailSrcRect, kPreferredPixelFormat);
SetGraphicsPort(nailSrcMap);
LoadGraphic(kThumbnailPictID);