Refactoring

This commit is contained in:
elasota
2019-12-29 22:12:11 -05:00
parent dadb21a275
commit 9cf539eb52
29 changed files with 203 additions and 177 deletions

View File

@@ -288,7 +288,7 @@ void LoadGraphic (short resID)
OffsetRect(&bounds, -bounds.left, -bounds.top);
DrawPicture(thePicture, &bounds);
ReleaseResource((Handle)thePicture);
DisposeHandle((Handle)thePicture);
}
//-------------------------------------------------------------- LoadScaledGraphic
@@ -304,7 +304,7 @@ void LoadScaledGraphic (short resID, Rect *theRect)
if (thePicture == nil)
RedAlert(kErrFailedGraphicLoad);
DrawPicture(thePicture, theRect);
ReleaseResource((Handle)thePicture);
DisposeHandle((Handle)thePicture);
}
//-------------------------------------------------------------- LargeIconPlot
@@ -317,7 +317,7 @@ void LargeIconPlot (Rect *theRect, short theID)
theErr = GetIconSuite(&theSuite, theID, svAllLargeData);
if (theErr == PLErrors::kNone)
theErr = PlotIconSuite(theRect, atNone, ttNone, theSuite);
theErr = PlotIconSuite(theRect, theSuite);
}
//-------------------------------------------------------------- DrawCIcon