r4493@vps: verhaegs | 2007-04-19 14:44:00 -0400
[AROS.git] / rom / graphics / getvpmodeid.c
blob5655c5807191a635b7dbd1e159a2f06668123e5e
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function GetVPModeID()
6 Lang: english
7 */
8 #include <aros/debug.h>
9 #include <graphics/view.h>
10 #include <graphics/modeid.h>
11 #include <hidd/graphics.h>
12 #include <proto/graphics.h>
13 #include "dispinfo.h"
15 /*****************************************************************************
17 NAME */
18 #include <proto/graphics.h>
20 AROS_LH1(ULONG, GetVPModeID,
22 /* SYNOPSIS */
23 AROS_LHA(struct ViewPort *, vp, A0),
25 /* LOCATION */
26 struct GfxBase *, GfxBase, 132, Graphics)
28 /* FUNCTION
29 returns the normal display modeID, if one is currently associated
30 with this ViewPort
32 INPUTS
33 vp - pointer to ViewPort structure
35 RESULT
36 modeID - a 32 bit DisplayInfoRecord identifier associated
37 with this ViewPort, or INVALID_ID
39 NOTES
41 EXAMPLE
43 BUGS
45 SEE ALSO
46 ModeNotAvailable() graphics/displayinfo.h
48 INTERNALS
50 HISTORY
53 ******************************************************************************/
55 AROS_LIBFUNC_INIT
56 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
58 ULONG modeid;
60 D(bug(" GetVPModeID returning %x\n", vp->ColorMap->VPModeID));
61 modeid = vp->ColorMap->VPModeID;
63 D(bug("RETURNING\n"));
65 return modeid;
67 AROS_LIBFUNC_EXIT
68 } /* GetVPModeID */