---
name: "SDL_GetGamma"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetGamma"
---

# SDL\_GetGamma(3)

Gets the gamma of the display

## NAME

SDL\_GetGamma - Gets the gamma of the display

## SYNOPSIS

**#include "SDL.h"**

**int SDL\_GetGamma**(**float \*red, float \*green, float \*blue**);

## DESCRIPTION

Gets the color gamma of the display. The gamma value for each color component will be place in the parameters **red**, **green** and **blue**. The values can range from 0.1 to 10.

**Note:**

**This function currently only works on XFreee 4.0 and up.**

## SEE ALSO

**SDL\_SetGamma**, **SDL\_SetVideoMode**
