mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-13 19:49:36 +00:00
Handle refactor
This commit is contained in:
@@ -1158,7 +1158,7 @@ void DrawCalendar (Rect *theRect)
|
||||
QOffsetRect(&bounds, -bounds.left, -bounds.top);
|
||||
QOffsetRect(&bounds, theRect->left, theRect->top);
|
||||
DrawPicture(thePicture, &bounds);
|
||||
DisposeHandle((Handle)thePicture);
|
||||
thePicture.Dispose();
|
||||
|
||||
SetPort((GrafPtr)backSrcMap);
|
||||
TextFace(bold);
|
||||
@@ -1191,7 +1191,7 @@ void DrawBulletin (Rect *theRect)
|
||||
QOffsetRect(&bounds, -bounds.left, -bounds.top);
|
||||
QOffsetRect(&bounds, theRect->left, theRect->top);
|
||||
DrawPicture(thePicture, &bounds);
|
||||
DisposeHandle((Handle)thePicture);
|
||||
thePicture.Dispose();
|
||||
|
||||
SetGraphicsPort(wasCPort);
|
||||
}
|
||||
@@ -1246,7 +1246,7 @@ void DrawPictObject (short what, Rect *theRect)
|
||||
bounds = srcRects[what];
|
||||
QOffsetRect(&bounds, theRect->left, theRect->top);
|
||||
DrawPicture(thePicture, &bounds);
|
||||
DisposeHandle((Handle)thePicture);
|
||||
thePicture.Dispose();
|
||||
|
||||
SetGraphicsPort(wasCPort);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user