2 Copyright © 1995-2013, 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.
48 *****************************************************************************/
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
);
63 } /* GetScreenDrawInfo */