---
name: "gfx_mode_select"
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"
---

# gfx\_mode\_select(3alleg)

Displays the Allegro graphics mode selection dialog.

## NAME

gfx\_mode\_select - Displays the Allegro graphics mode selection dialog.

## SYNOPSIS

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

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

## DESCRIPTION

Displays the Allegro graphics mode selection dialog, which allows the  user to select a screen mode and graphics card. Stores the selection in  the three variables, and returns zero if it was closed with the Cancel  button or non-zero if it was OK'd.

The initial values of card, w, h are not used.

## SEE ALSO

[**gfx\_mode\_select\_ex**(3alleg)](/gfx_mode_select_ex/3alleg.md), [**gfx\_mode\_select\_filter**(3alleg)](/gfx_mode_select_filter/3alleg.md), [**set\_gfx\_mode**(3alleg)](/set_gfx_mode/3alleg.md), [**gui\_fg\_color**(3alleg)](/gui_fg_color/3alleg.md)
