---
name: "SDL_GetWindowFullscreenMode"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetWindowFullscreenMode"
---

# SDL\_GetWindowFullscreenMode(3)

Query the display mode to use when a window is visible at fullscreen.

## NAME

SDL\_GetWindowFullscreenMode - Query the display mode to use when a window is visible at fullscreen.

## HEADER FILE

Defined in SDL3/SDL\_video.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**const SDL\_DisplayMode \* SDL\_GetWindowFullscreenMode(SDL\_Window \*window);**

## FUNCTION PARAMETERS

- *window*

  the window to query.

## RETURN VALUE

(const  **SDL\_DisplayMode**\
  \*) Returns a pointer to the exclusive fullscreen mode to use or NULL for borderless fullscreen desktop mode.

## THREAD SAFETY

This function should only be called on the main thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_SetWindowFullscreenMode**(3)](/SDL_SetWindowFullscreenMode/3.md), **•**(3), [**SDL\_SetWindowFullscreen**(3)](/SDL_SetWindowFullscreen/3.md)
