add some more debug. bump versions of components being adapted for 64bit support.
[AROS.git] / rom / intuition / getscreendrawinfo.c
blobf87817d50a2c67224ea0aca984bfb2e59a1ce28d
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <proto/intuition.h>
14 AROS_LH1(struct DrawInfo *, GetScreenDrawInfo,
16 /* SYNOPSIS */
17 AROS_LHA(struct Screen *, screen, A0),
19 /* LOCATION */
20 struct IntuitionBase *, IntuitionBase, 115, Intuition)
22 /* FUNCTION
23 Returns a pointer to struct DrawInfo of the passed screen.
24 This data is READ ONLY. The version of the struct DrawInfo
25 is given in the dri_Version field.
27 INPUTS
28 screen - The screen you want to get the DrawInfo from.
29 Must be valid and open.
31 RESULT
32 Returns pointer to struct DrawInfo defined in intuition/screens.h
34 NOTES
35 Call FreeScreenDrawInfo() after finishing using the pointer.
36 This function does not prevent the screen from being closed.
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 FreeScreenDrawInfo(), LockPubScreen(), intuition/screens.h
45 INTERNALS
46 Only returns the pointer.
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
52 ASSERT_VALID_PTR(screen);
54 DEBUG_GETSCREENDRAWINFO(dprintf("GetScreenDrawInfo(screen 0x%lx)\n",screen));
56 IntuitionBase = IntuitionBase; /* shut up the compiler */
58 SANITY_CHECKR(screen,FALSE)
60 return (struct DrawInfo *)&(((struct IntScreen *)screen)->DInfo);
62 AROS_LIBFUNC_EXIT
63 } /* GetScreenDrawInfo */