---
name: "gui_get_screen"
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/gui_get_screen"
---

# gui\_get\_screen(3alleg)

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**(3alleg)](/gui_set_screen/3alleg.md)
