mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Handle refactor
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user