- Handle multiple nodes having output volume control.
[AROS.git] / rom / graphics / modenotavailable.c
blob0b2f2ba9224c8846e0908a644e704c7ae459921f
1 /*
2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function ModeNotAvailable()
6 Lang: english
7 */
8 #include <graphics/displayinfo.h>
9 #include <graphics/modeid.h>
11 #include "graphics_intern.h"
13 /*****************************************************************************
15 NAME */
16 #include <proto/graphics.h>
18 AROS_LH1(ULONG, ModeNotAvailable,
20 /* SYNOPSIS */
21 AROS_LHA(ULONG, modeID, D0),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 133, Graphics)
26 /* FUNCTION
27 returns an error code, indicating why this modeID is not available,
28 or 0 if there is no reason known why this mode should not be there
30 INPUTS
31 modeID - a 32 bit DisplayInfoRecord identifier
33 RESULT
34 error - a general indication of why this modeID is not available,
35 or 0 if there is no reason why it should not be available
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
44 GetVPModeID(), graphics/displayinfo.h
46 INTERNALS
48 HISTORY
51 ******************************************************************************/
53 AROS_LIBFUNC_INIT
55 struct DisplayInfo disp;
57 if (GetDisplayInfoData(NULL, (UBYTE *)&disp, sizeof(disp), DTAG_DISP, modeID) == sizeof(disp))
58 return disp.NotAvailable;
60 /* FIXME: Is this correct ? */
61 return DI_AVAIL_NOMONITOR;
63 AROS_LIBFUNC_EXIT
64 } /* ModeNotAvailable */