---
name: "gfx_mode_select_ex"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/gfx_mode_select_ex"
---

# gfx\_mode\_select\_ex(3alleg)

Extended version of the graphics mode selection dialog. Allegro game programming library.

## NAME

gfx\_mode\_select\_ex - Extended version of the graphics mode selection dialog. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int gfx\_mode\_select\_ex(int \*card, int \*w, int \*h, int \*color\_depth);**

## DESCRIPTION

Extended version of the graphics mode selection dialog, which allows the  user to select the color depth as well as the resolution and hardware  driver.

This version of the function reads the initial values from the  parameters when it activates so you can specify the default values. In fact, you should be sure not to pass in uninitialised values.

## SEE ALSO

[**gfx\_mode\_select**(3alleg)](/gfx_mode_select/3alleg.md), [**gfx\_mode\_select\_filter**(3alleg)](/gfx_mode_select_filter/3alleg.md), [**set\_color\_depth**(3alleg)](/set_color_depth/3alleg.md), [**set\_gfx\_mode**(3alleg)](/set_gfx_mode/3alleg.md), [**gui\_fg\_color**(3alleg)](/gui_fg_color/3alleg.md), [**ex3d**(3alleg)](/ex3d/3alleg.md), [**exscn3d**(3alleg)](/exscn3d/3alleg.md), [**exswitch**(3alleg)](/exswitch/3alleg.md), [**exupdate**(3alleg)](/exupdate/3alleg.md), [**exzbuf**(3alleg)](/exzbuf/3alleg.md)
