2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Graphics function CloneRastPort()
9 #include <exec/memory.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
15 #include <graphics/rastport.h>
16 #include <proto/arossupport.h>
18 struct RastPort
*CloneRastPort(
24 This function creates a copy of a RastPort.
27 rp - The RastPort to clone.
30 A pointer to a RastPort with the same attributes as the RastPort
31 which was specified or NULL if there was not enough memory to perform
41 CreateRastPort(), FreeRastPort()
46 29-10-95 digulla automatically created from
47 graphics_lib.fd and clib/graphics_protos.h
49 *****************************************************************************/
51 struct RastPort
*newRP
= AllocMem (sizeof (struct RastPort
), MEMF_ANY
);
54 CopyMem (rp
, newRP
, sizeof (struct RastPort
));