2 Copyright © 1995-2010, 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>
14 #include "graphics_intern.h"
16 #include "gfxfuncsupport.h"
18 /*****************************************************************************
21 #include <proto/graphics.h>
23 AROS_LH1(ULONG
, GetVPModeID
,
26 AROS_LHA(struct ViewPort
*, vp
, A0
),
29 struct GfxBase
*, GfxBase
, 132, Graphics
)
32 returns the normal display modeID, if one is currently associated
36 vp - pointer to ViewPort structure
39 modeID - a 32 bit DisplayInfoRecord identifier associated
40 with this ViewPort, or INVALID_ID
49 ModeNotAvailable(), graphics/displayinfo.h
56 ******************************************************************************/
63 /* If we have a colormap, get ModeID from it */
64 modeid
= vp
->ColorMap
->VPModeID
;
65 else if (IS_HIDD_BM(vp
->RasInfo
->BitMap
))
66 modeid
= GET_BM_MODEID(vp
->RasInfo
->BitMap
);
70 D(bug(" GetVPModeID returning %x\n", modeid
));