2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function NextDisplayInfo()
8 #include <graphics/displayinfo.h>
9 #include <hidd/graphics.h>
10 #include "graphics_intern.h"
13 /*****************************************************************************
16 #include <proto/graphics.h>
18 AROS_LH1(ULONG
, NextDisplayInfo
,
21 AROS_LHA(ULONG
, last_ID
, D0
),
24 struct GfxBase
*, GfxBase
, 122, Graphics
)
29 last_ID - previous displayinfo identifier
30 or INVALID_ID if beginning iteration
33 next_ID - subsequent displayinfo identifier
34 or INVALID_ID if no more records
43 FindDisplayInfo() GetDisplayInfoData() graphics/displayinfo.h
50 ******************************************************************************/
53 AROS_LIBBASE_EXT_DECL(struct GfxBase
*,GfxBase
)
55 OOP_Object
*sync
, *pixfmt
;
57 HIDDT_ModeID hiddmode
;
60 hiddmode
= (HIDDT_ModeID
)AMIGA_TO_HIDD_MODEID(last_ID
);
62 /* Get the next modeid */
63 hiddmode
= HIDD_Gfx_NextModeID(SDD(GfxBase
)->gfxhidd
, hiddmode
, &sync
, &pixfmt
);
65 id
= HIDD_TO_AMIGA_MODEID(hiddmode
);
70 } /* NextDisplayInfo */