---
name: "gui_get_screen"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gui_get_screen/3alleg4"
---

# gui\_get\_screen(3alleg4)

Returns the bitmap surface GUI routines draw to. Allegro game programming library.

## NAME

gui\_get\_screen - Returns the bitmap surface GUI routines draw to. Allegro game programming library.

## SYNOPSIS

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

**BITMAP \*gui\_get\_screen(void);**

## DESCRIPTION

This function returns the current bitmap surface the GUI routines will use for drawing. Note that this function will return screen if you have called gui\_set\_screen(NULL) previously, and will never return NULL.

## SEE ALSO

**gui\_set\_screen**(3alleg4)
