---
name: "SDL_WINDOWPOS_CENTERED_DISPLAY"
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_WINDOWPOS_CENTERED_DISPLAY"
---

# SDL\_WINDOWPOS\_CENTERED\_DISPLAY(3)

Used to indicate that the window position should be centered.

## NAME

SDL\_WINDOWPOS\_CENTERED\_DISPLAY - Used to indicate that the window position should be centered.

## HEADER FILE

Defined in SDL3/SDL\_video.h

## SYNOPSIS

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

**#define SDL\_WINDOWPOS\_CENTERED\_DISPLAY(X)  (SDL\_WINDOWPOS\_CENTERED\_MASK\|(X))**

## DESCRIPTION

**SDL\_WINDOWPOS\_CENTERED**\
  is the same, but always uses the primary display instead of specifying one.

## AVAILABILITY

This macro is available since SDL 3.2.0.
