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

@@ -165,14 +165,14 @@ void LoadGraphicPlus (short resID, Rect *theRect)
thePicture = GetPicture(resID);
if (thePicture == nil)
{
thePicture = (PicHandle)GetResource('Date', resID);
thePicture = GetResource('Date', resID).StaticCast<Picture>();
if (thePicture == nil)
{
return;
}
}
DrawPicture(thePicture, theRect);
DisposeHandle((Handle)thePicture);
thePicture.Dispose();
}
//-------------------------------------------------------------- RedrawMapContents