Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / graphics / loadview.c
blob0ee0ad79d2cb7d16d1318b629b82d11a18ab740d
1 /*
2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function LoadView()
6 Lang: english
7 */
9 #include <aros/debug.h>
10 #include <graphics/view.h>
12 #include "graphics_intern.h"
13 #include "gfxfuncsupport.h"
14 /*****************************************************************************
16 NAME */
17 #include <proto/graphics.h>
19 AROS_LH1(void, LoadView,
21 /* SYNOPSIS */
22 AROS_LHA(struct View *, view, A1),
24 /* LOCATION */
25 struct GfxBase *, GfxBase, 37, Graphics)
27 /* FUNCTION
28 Display a new view
30 INPUTS
31 view - pointer to the View structure which contains the pointer to the
32 constructed coprocessor instructions list, or NULL
34 RESULT
35 None.
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 HISTORY
50 ******************************************************************************/
52 AROS_LIBFUNC_INIT
54 ObtainSemaphore(GfxBase->ActiViewCprSemaphore);
56 if (GfxBase->ActiView != view)
58 GfxBase->ActiView = view;
59 DoViewFunction(view, driver_LoadViewPorts, GfxBase);
62 ReleaseSemaphore(GfxBase->ActiViewCprSemaphore);
64 AROS_LIBFUNC_EXIT
65 } /* LoadView */