Minor fixes to comments.
[AROS.git] / rom / intuition / viewportaddress.c
blob89add7182585861122d55694f25181a01b2f3f7f
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include <graphics/view.h>
8 #include <intuition/intuition.h>
9 #include <aros/libcall.h>
11 /*****************************************************************************
13 NAME */
14 #include <proto/intuition.h>
16 AROS_LH1(struct ViewPort *, ViewPortAddress,
18 /* SYNOPSIS */
19 AROS_LHA(struct Window *, Window, A0),
21 /* LOCATION */
22 struct IntuitionBase *, IntuitionBase, 50, Intuition)
24 /* FUNCTION
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.
29 INPUTS
30 Window - pointer to a Window structure
32 RESULT
33 Address of the Intuition ViewPort structure for the screen that your
34 window is displayed on.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 graphics.library
45 INTERNALS
47 HISTORY
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
53 /* shut up the compiler */
54 IntuitionBase = IntuitionBase;
56 return &(Window->WScreen->ViewPort);
58 AROS_LIBFUNC_EXIT
59 } /* ViewPortAddress */