---
name: "SDL_GetVideoInfo"
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_GetVideoInfo"
---

# SDL\_GetVideoInfo(3)

returns a pointer to information about the video hardware

## NAME

SDL\_GetVideoInfo - returns a pointer to information about the video hardware

## SYNOPSIS

**#include "SDL.h"**

**SDL\_VideoInfo \*SDL\_GetVideoInfo**(**void**);

## DESCRIPTION

This function returns a read-only pointer to *information* about the video hardware. If this is called before *SDL\_SetVideoMode*, the **vfmt** member of the returned structure will contain the pixel format of the "best" video mode.

## SEE ALSO

**SDL\_SetVideoMode**, **SDL\_VideoInfo**
