This function allocates a new ClipRect from a Layer_Info structure and returns a pointer to the ClipRect. The ClipRect is inialized up to the cliprect bounds. NOTE THAT THIS FUNCTION IS PRIVATE. You should never play with layer cliprects yourself and never attach this cliprect to a layer yourself. This cliprect belongs to the given Layer_Info structure and must be released before the Layer_Info gets released.
INPUTS
li
pointer to a Layer_Info to allocate the ClipRect from.
RESULT
cliprect
a pointer to a ClipRect structure or NULL in case the system run out of memory.