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

# remove\_display\_switch\_callback(3alleg)

Removes a switching notification callback. Allegro game programming library.

## NAME

remove\_display\_switch\_callback - Removes a switching notification callback. Allegro game programming library.

## SYNOPSIS

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

**void remove\_display\_switch\_callback(void (\*cb)());**

## DESCRIPTION

Removes a notification callback that was previously installed by calling  set\_display\_switch\_callback(). All the callbacks will automatically be  removed when you call set\_display\_switch\_mode(). You can safely call this function even if the callback you want to remove is not installed.

## SEE ALSO

[**set\_display\_switch\_callback**(3alleg)](/set_display_switch_callback/3alleg.md)
