---
name: "SDL_GetVideoSurface"
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_GetVideoSurface"
---

# SDL\_GetVideoSurface(3)

returns a pointer to the current display surface

## NAME

SDL\_GetVideoSurface - returns a pointer to the current display surface

## SYNOPSIS

**#include "SDL.h"**

**SDL\_Surface \*SDL\_GetVideoSurface**(**void**);

## DESCRIPTION

This function returns a pointer to the current display surface. If SDL is doing format conversion on the display surface, this function returns the publicly visible surface, not the real video surface.

## SEE ALSO

**SDL\_Surface**
