mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Handle refactor
This commit is contained in:
@@ -134,7 +134,7 @@ void LoadGraphicSpecial (short resID)
|
||||
thePicture = GetPicture(resID);
|
||||
if (thePicture == nil)
|
||||
{
|
||||
thePicture = (PicHandle)GetResource('Date', resID);
|
||||
thePicture = GetResource('Date', resID).StaticCast<Picture>();
|
||||
if (thePicture == nil)
|
||||
{
|
||||
thePicture = GetPicture(2000);
|
||||
@@ -146,8 +146,8 @@ void LoadGraphicSpecial (short resID)
|
||||
bounds = (*thePicture)->picFrame.ToRect();
|
||||
OffsetRect(&bounds, -bounds.left, -bounds.top);
|
||||
DrawPicture(thePicture, &bounds);
|
||||
|
||||
DisposeHandle((Handle)thePicture);
|
||||
|
||||
thePicture.Dispose();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- DrawRoomBackground
|
||||
|
||||
Reference in New Issue
Block a user