mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Refactoring
This commit is contained in:
@@ -271,7 +271,7 @@ void ReadyBackground (short theID, short *theTiles)
|
||||
dest = (*thePicture)->picFrame.ToRect();
|
||||
QOffsetRect(&dest, -dest.left, -dest.top);
|
||||
DrawPicture(thePicture, &dest);
|
||||
ReleaseResource((Handle)thePicture);
|
||||
DisposeHandle((Handle)thePicture);
|
||||
|
||||
QSetRect(&src, 0, 0, kTileWide, kTileHigh);
|
||||
QSetRect(&dest, 0, 0, kTileWide, kTileHigh);
|
||||
@@ -913,7 +913,7 @@ short GetOriginalBounding (short theID)
|
||||
boundCode += 4;
|
||||
if ((*boundsRes)->bottom)
|
||||
boundCode += 8;
|
||||
ReleaseResource((Handle)boundsRes);
|
||||
DisposeHandle((Handle)boundsRes);
|
||||
}
|
||||
|
||||
return (boundCode);
|
||||
|
||||
Reference in New Issue
Block a user