2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: Graphics function ModeNotAvailable()
8 #include <graphics/displayinfo.h>
9 #include <graphics/modeid.h>
11 /*****************************************************************************
14 #include <proto/graphics.h>
16 AROS_LH1(ULONG
, ModeNotAvailable
,
19 AROS_LHA(ULONG
, modeID
, D0
),
22 struct GfxBase
*, GfxBase
, 133, Graphics
)
25 returns an error code, indicating why this modeID is not available,
26 or 0 if there is no reason known why this mode should not be there
29 modeID - a 32 bit DisplayInfoRecord identifier
32 error - a general indication of why this modeID is not available,
33 or 0 if there is no reason why it should not be available
42 GetVPModeID(), graphics/displayinfo.h
49 ******************************************************************************/
53 struct DisplayInfo disp
;
55 if (GetDisplayInfoData(NULL
, (UBYTE
*)&disp
, sizeof(disp
), DTAG_DISP
, modeID
) == sizeof(disp
))
56 return disp
.NotAvailable
;
58 /* FIXME: Is this correct ? */
59 return DI_AVAIL_NOMONITOR
;
62 } /* ModeNotAvailable */