2 Copyright © 1995-2007, 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
)
27 Go to next entry in the DisplayInfo database.
30 last_ID - previous displayinfo identifier
31 or INVALID_ID if beginning iteration
34 next_ID - subsequent displayinfo identifier
35 or INVALID_ID if no more records
44 FindDisplayInfo(), GetDisplayInfoData(), graphics/displayinfo.h
51 ******************************************************************************/
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 */