grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / graphics / initvport.c
blobd92ea6f15d543f278ea86353b2de95cc33850e89
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function InitVPort()
6 Lang: english
7 */
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
10 #include <graphics/view.h>
11 #include <proto/exec.h>
13 static const struct ViewPort defaultViewPort =
15 NULL, /* Next */
16 NULL, /* ColorMap */
17 NULL, /* DspIns */
18 NULL, /* SprIns */
19 NULL, /* ClrIns */
20 NULL, /* UCopIns */
21 0, /* DWidth */
22 0, /* DHeight */
23 0, /* DxOffset */
24 0, /* DyOffset */
25 0, /* Modes */
26 0x24, /* SpritePriorities */
27 0, /* ExtendedModes */
28 NULL /* RasInfo */
31 /*****************************************************************************
33 NAME */
34 #include <proto/graphics.h>
36 AROS_LH1(void, InitVPort,
38 /* SYNOPSIS */
39 AROS_LHA(struct ViewPort *, vp, A0),
41 /* LOCATION */
42 struct GfxBase *, GfxBase, 34, Graphics)
44 /* FUNCTION
45 Initializes a ViewPort structure.
47 INPUTS
48 view - The View to initialize.
50 RESULT
51 ViewPort is initialized to it`s default values - doesn't care about
52 previous contents of this structure.
53 All values except for SpritePriorities are set to 0's.
55 NOTES
57 EXAMPLE
59 BUGS
61 SEE ALSO
63 INTERNALS
65 HISTORY
67 *****************************************************************************/
69 AROS_LIBFUNC_INIT
71 ASSERT_VALID_PTR(vp);
73 CopyMem ((UBYTE *)&defaultViewPort, vp, sizeof (struct ViewPort));
75 AROS_LIBFUNC_EXIT
77 } /* InitViewPort */