some fixes to accented characters
[tangerine.git] / rom / graphics / nextdisplayinfo.c
blob59c42d47a2a9838afb2c8db0cf35b1cd72c20af0
1 /*
2 Copyright © 1995-2007, 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
27 Go to next entry in the DisplayInfo database.
29 INPUTS
30 last_ID - previous displayinfo identifier
31 or INVALID_ID if beginning iteration
33 RESULT
34 next_ID - subsequent displayinfo identifier
35 or INVALID_ID if no more records
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
44 FindDisplayInfo(), GetDisplayInfoData(), graphics/displayinfo.h
46 INTERNALS
48 HISTORY
51 ******************************************************************************/
53 AROS_LIBFUNC_INIT
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 */