2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
5 Desc: Graphics function NextDisplayInfo()
8 #include <graphics/displayinfo.h>
10 #include <proto/oop.h>
11 #include "graphics_intern.h"
14 /*****************************************************************************
17 #include <proto/graphics.h>
19 AROS_LH1(ULONG
, NextDisplayInfo
,
22 AROS_LHA(ULONG
, last_ID
, D0
),
25 struct GfxBase
*, GfxBase
, 122, Graphics
)
28 Go to next entry in the DisplayInfo database.
31 last_ID - previous displayinfo identifier
32 or INVALID_ID if beginning iteration
35 next_ID - subsequent displayinfo identifier
36 or INVALID_ID if no more records
45 FindDisplayInfo(), GetDisplayInfoData(), graphics/displayinfo.h
52 ******************************************************************************/
56 struct monitor_driverdata
*mdd
= NULL
;
57 struct DisplayInfoHandle
*dh
= NULL
;
59 if (last_ID
== INVALID_ID
)
60 /* Start from the beginning */
61 mdd
= CDD(GfxBase
)->monitors
;
63 /* Find handle and driver of current mode */
64 dh
= FindDisplayInfo(last_ID
);
70 /* Take next (or first) mode handle */
76 /* If it's not the last handle, return it */
77 if (dh
->id
!= vHidd_ModeID_Invalid
)
78 return dh
->drv
->id
| dh
->id
;
80 /* Next driver, first handle */
88 } /* NextDisplayInfo */