New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / graphics / nextdisplayinfo.c
blob02ae7c305b118186abaf76e89474cd74a6335aa6
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function NextDisplayInfo()
6 Lang: english
7 */
8 #include <graphics/displayinfo.h>
9 #include <hidd/graphics.h>
10 #include "graphics_intern.h"
11 #include "dispinfo.h"
13 /*****************************************************************************
15 NAME */
16 #include <proto/graphics.h>
18 AROS_LH1(ULONG, NextDisplayInfo,
20 /* SYNOPSIS */
21 AROS_LHA(ULONG, last_ID, D0),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 122, Graphics)
26 /* FUNCTION
28 INPUTS
29 last_ID - previous displayinfo identifier
30 or INVALID_ID if beginning iteration
32 RESULT
33 next_ID - subsequent displayinfo identifier
34 or INVALID_ID if no more records
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 FindDisplayInfo() GetDisplayInfoData() graphics/displayinfo.h
45 INTERNALS
47 HISTORY
50 ******************************************************************************/
52 AROS_LIBFUNC_INIT
53 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
55 OOP_Object *sync, *pixfmt;
57 HIDDT_ModeID hiddmode;
58 ULONG id;
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);
67 return id;
69 AROS_LIBFUNC_EXIT
70 } /* NextDisplayInfo */