/* Copyright (C) 1995-2011, The AROS Development Team. All rights reserved. Desc: AROS Graphics function CreateRastPort() */ #include #include #include /***************************************************************************** NAME */ #include #include struct RastPort *CreateRastPort( /* SYNOPSIS */ void) /* FUNCTION This function creates a new RastPort. INPUTS None. RESULT A pointer to a new RastPort or NULL if there was not enough memory to perform the operation. NOTES EXAMPLE BUGS SEE ALSO INTERNALS HISTORY 29-10-95 digulla automatically created from graphics_lib.fd and clib/graphics_protos.h *****************************************************************************/ { struct RastPort *newRP = AllocMem (sizeof (struct RastPort), MEMF_ANY); if (newRP) InitRastPort(newRP); return newRP; } /* CreateRastPort */