2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
9 #include <hidd/graphics.h>
10 #include <proto/graphics.h>
11 #include <proto/oop.h>
13 #include "cybergraphics_intern.h"
14 #include "gfxfuncsupport.h"
16 /*****************************************************************************
19 #include <proto/cybergraphics.h>
21 AROS_LH1(BOOL
, IsCyberModeID
,
24 AROS_LHA(ULONG
, modeID
, D0
),
27 struct Library
*, CyberGfxBase
, 9, Cybergraphics
)
30 Checks if the given display mode ID belongs to an RTG driver.
33 modeID - a display mode ID to check.
36 result - TRUE if the mode belongs to an RTG driver, FALSE otherwise.
47 The function relies on the pixelformat object being passed in
48 DimensionInfo.reserved[1] by graphics.library/GetDisplayInfoData().
50 *****************************************************************************/
54 struct DimensionInfo info
;
56 /* This function works by querying pixelformat for the mode and checking if it is planar */
57 if (GetDisplayInfoData(NULL
, (UBYTE
*)&info
, sizeof(info
), DTAG_DIMS
, modeID
) == sizeof(info
)) {
58 HIDDT_StdPixFmt stdpf
;
59 OOP_Object
*pf
= (OOP_Object
*)info
.reserved
[1];
61 OOP_GetAttr(pf
, aHidd_PixFmt_StdPixFmt
, &stdpf
);
63 return (stdpf
!= vHidd_StdPixFmt_Plane
);