Handle refactor

This commit is contained in:
elasota
2019-12-29 23:14:37 -05:00
parent 9cf539eb52
commit fb105bd338
37 changed files with 365 additions and 240 deletions

View File

@@ -288,7 +288,7 @@ void LoadGraphic (short resID)
OffsetRect(&bounds, -bounds.left, -bounds.top);
DrawPicture(thePicture, &bounds);
DisposeHandle((Handle)thePicture);
thePicture.Dispose();
}
//-------------------------------------------------------------- LoadScaledGraphic
@@ -304,7 +304,7 @@ void LoadScaledGraphic (short resID, Rect *theRect)
if (thePicture == nil)
RedAlert(kErrFailedGraphicLoad);
DrawPicture(thePicture, theRect);
DisposeHandle((Handle)thePicture);
thePicture.Dispose();
}
//-------------------------------------------------------------- LargeIconPlot