2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include "intuition_intern.h"
9 /*****************************************************************************
12 #include <proto/intuition.h>
14 AROS_LH1(struct DrawInfo
*, GetScreenDrawInfo
,
17 AROS_LHA(struct Screen
*, screen
, A0
),
20 struct IntuitionBase
*, IntuitionBase
, 115, Intuition
)
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.
28 screen - The screen you want to get the DrawInfo from.
29 Must be valid and open.
32 Returns pointer to struct DrawInfo defined in intuition/screens.h
35 Call FreeScreenDrawInfo() after finishing using the pointer.
36 This function does not prevent the screen from being closed.
43 FreeScreenDrawInfo(), LockPubScreen(), intuition/screens.h
46 Only returns the pointer.
49 29-10-95 digulla automatically created from
50 intuition_lib.fd and clib/intuition_protos.h
52 *****************************************************************************/
56 ASSERT_VALID_PTR(screen
);
58 DEBUG_GETSCREENDRAWINFO(dprintf("GetScreenDrawInfo(screen 0x%lx)\n",screen
));
60 IntuitionBase
= IntuitionBase
; /* shut up the compiler */
62 SANITY_CHECKR(screen
,FALSE
)
64 return (struct DrawInfo
*)&(((struct IntScreen
*)screen
)->DInfo
);
67 } /* GetScreenDrawInfo */