mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 22:19:19 +02:00
MG: added TDeviceContextMemManager
git-svn-id: trunk@749 -
This commit is contained in:
parent
db7c768ec3
commit
1580317416
@ -4920,7 +4920,7 @@ end;
|
||||
function TgtkObject.NewDC: PDeviceContext;
|
||||
begin
|
||||
Assert(False, Format('Trace:> [TgtkObject.NewDC]', []));
|
||||
New(Result);
|
||||
Result:=GtkDef.NewPDeviceContext;
|
||||
with Result^ do
|
||||
begin
|
||||
hWnd := 0;
|
||||
@ -4942,6 +4942,19 @@ begin
|
||||
// Assert(False, Format('Trace:< [TgtkObject.NewDC] FDeviceContexts[%d] --> 0x%p', [n, Result]));
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
procedure TgtkObject.DisposeDC(DC: PDeviceContext);
|
||||
|
||||
Disposes DC
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TgtkObject.DisposeDC(pDC: PDeviceContext);
|
||||
begin
|
||||
if FDeviceContexts.Contains(pDC) then begin
|
||||
FDeviceContexts.Remove(pDC);
|
||||
GtkDef.DisposePDeviceContext(pDC);
|
||||
end;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Function: NewGDIObject
|
||||
Params: none
|
||||
@ -5298,6 +5311,9 @@ end;
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.171 2002/08/21 14:06:40 lazarus
|
||||
MG: added TDeviceContextMemManager
|
||||
|
||||
Revision 1.170 2002/08/21 11:42:52 lazarus
|
||||
MG: reduced output
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user