add NOWARN_SIZEOF_POINTER_MEMACCESS
[AROS.git] / rom / graphics / initview.c
blob45f237a043f2d909edc4e8f6681952e75f79af72
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function InitView()
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 View defaultView =
15 NULL, /* ViewPort */
16 NULL, /* LOFCprList */
17 NULL, /* SHFCprList */
18 0, /* DyOffset */
19 0, /* DxOffset */
20 0 /* Modes */
23 /*****************************************************************************
25 NAME */
26 #include <proto/graphics.h>
28 AROS_LH1(void, InitView,
30 /* SYNOPSIS */
31 AROS_LHA(struct View *, view, A1),
33 /* LOCATION */
34 struct GfxBase *, GfxBase, 60, Graphics)
36 /* FUNCTION
37 Initializes a View structure.
39 INPUTS
40 view - The View to initialize.
42 RESULT
43 View is initialized to it`s default values - doesn't care about
44 previous contents of this structure.
45 All values except for DxOffset,DyOffset are set to 0's.
47 NOTES
49 EXAMPLE
51 BUGS
53 SEE ALSO
55 INTERNALS
57 HISTORY
59 *****************************************************************************/
61 AROS_LIBFUNC_INIT
63 ASSERT_VALID_PTR(view);
65 CopyMem ((UBYTE *)&defaultView, view, sizeof (struct View));
67 AROS_LIBFUNC_EXIT
69 } /* InitView */