From 4f58d183732c44984779dcbbe70c44a9bf6c56ed Mon Sep 17 00:00:00 2001 From: Susko3 Date: Sun, 3 Mar 2024 19:21:24 +0100 Subject: [PATCH] Typedef `SDL_WindowFlags` Window flags were previously an enum with the same name. See ebd7f9adbdc0975f6c7584738609028abb3cce6e. --- docs/README-migration.md | 1 - include/SDL3/SDL_video.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/README-migration.md b/docs/README-migration.md index 0089142f1..8a81bd0d4 100644 --- a/docs/README-migration.md +++ b/docs/README-migration.md @@ -1680,7 +1680,6 @@ The following functions have been removed: * SDL_CreateWindowFrom() - use SDL_CreateWindowWithProperties() with the properties that allow you to wrap an existing window The SDL_Window id type is named SDL_WindowID -The SDL_WindowFlags enum should be replaced with Uint32 The following symbols have been renamed: * SDL_WINDOW_ALLOW_HIGHDPI => SDL_WINDOW_HIGH_PIXEL_DENSITY diff --git a/include/SDL3/SDL_video.h b/include/SDL3/SDL_video.h index 7482e2554..11f96d28b 100644 --- a/include/SDL3/SDL_video.h +++ b/include/SDL3/SDL_video.h @@ -141,6 +141,8 @@ typedef struct SDL_Window SDL_Window; * * \sa SDL_GetWindowFlags */ +typedef Uint32 SDL_WindowFlags; + #define SDL_WINDOW_FULLSCREEN 0x00000001U /**< window is in fullscreen mode */ #define SDL_WINDOW_OPENGL 0x00000002U /**< window usable with OpenGL context */ #define SDL_WINDOW_OCCLUDED 0x00000004U /**< window is occluded */