---
name: "SDL_GetGammaRamp"
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_GetGammaRamp"
---

# SDL\_GetGammaRamp(3)

Gets the color gamma lookup tables for the display

## NAME

SDL\_GetGammaRamp - Gets the color gamma lookup tables for the display

## SYNOPSIS

**#include "SDL.h"**

**int SDL\_GetGammaRamp**(**Uint16 \*redtable, Uint16 \*greentable, Uint16 \*bluetable**);

## DESCRIPTION

Gets the gamma translation lookup tables currently used by the display. Each table is an array of 256 Uint16 values.

Not all display hardware is able to change gamma.

## RETURN VALUE

Returns -1 on error.

## SEE ALSO

*SDL\_SetGamma* *SDL\_SetGammaRamp*
