1gfx_mode_select(3) Allegro manual gfx_mode_select(3)
2
3
4
6 gfx_mode_select - Displays the Allegro graphics mode selection dialog.
7
9 #include <allegro.h>
10
11
12 int gfx_mode_select(int *card, int *w, int *h);
13
15 Displays the Allegro graphics mode selection dialog, which allows the
16 user to select a screen mode and graphics card.
17
18 The initial values at the addresses provided by card, w, and h are used
19 as the default selections in the dialog if they are found in the driver
20 and mode lists. If they are not found then the initial selections will
21 be the first in each list. If you wish to ensure that the initial
22 selection is always the first entry, then initialize the data at the
23 addresses passed to the function to the value of 0 or -1.
24
25 If the dialog is OK'd, it stores the selections at the addresses passed
26 to the function.
27
29 See the gfx_mode_select_filter function for the return values.
30
31
33 gfx_mode_select_ex(3), gfx_mode_select_filter(3), set_gfx_mode(3),
34 gui_fg_color(3)
35
36
37
38Allegro version 4.4.3 gfx_mode_select(3)