2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include <graphics/view.h>
8 #include <intuition/intuition.h>
9 #include <aros/libcall.h>
11 /*****************************************************************************
14 #include <proto/intuition.h>
16 AROS_LH1(struct ViewPort
*, ViewPortAddress
,
19 AROS_LHA(struct Window
*, Window
, A0
),
22 struct IntuitionBase
*, IntuitionBase
, 50, Intuition
)
25 Returns the address of the viewport of a given window. Use this
26 call, if you want to use any graphics, text or animation functions
27 that require the address of a viewport for your window.
30 Window - pointer to a Window structure
33 Address of the Intuition ViewPort structure for the screen that your
34 window is displayed on.
49 *****************************************************************************/
53 /* shut up the compiler */
54 IntuitionBase
= IntuitionBase
;
56 return &(Window
->WScreen
->ViewPort
);
59 } /* ViewPortAddress */