Disabled debug for Poseidon by default.
[cake.git] / rom / graphics / getvpmodeid.c
bloba1c79fa06f0f630d57912c9c26d2c199900b2bef
1 /*
2 Copyright © 1995-2007, 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
57 ULONG modeid;
59 D(bug(" GetVPModeID returning %x\n", vp->ColorMap->VPModeID));
60 modeid = vp->ColorMap->VPModeID;
62 D(bug("RETURNING\n"));
64 return modeid;
66 AROS_LIBFUNC_EXIT
67 } /* GetVPModeID */