2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function GetVPModeID()
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>
15 /*****************************************************************************
18 #include <proto/graphics.h>
20 AROS_LH1(ULONG
, GetVPModeID
,
23 AROS_LHA(struct ViewPort
*, vp
, A0
),
26 struct GfxBase
*, GfxBase
, 132, Graphics
)
29 returns the normal display modeID, if one is currently associated
33 vp - pointer to ViewPort structure
36 modeID - a 32 bit DisplayInfoRecord identifier associated
37 with this ViewPort, or INVALID_ID
46 ModeNotAvailable(), graphics/displayinfo.h
53 ******************************************************************************/
59 D(bug(" GetVPModeID returning %x\n", vp
->ColorMap
->VPModeID
));
60 modeid
= vp
->ColorMap
->VPModeID
;
62 D(bug("RETURNING\n"));