mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
Preserve binary compatibility in SDL_SYSWM_TYPE (thanks Gerry JJ!)
Also moved Wayland structures to the bottom of the union for OCD related issues.
This commit is contained in:
parent
9d85cdb1a6
commit
682bc47bc5
@ -101,10 +101,10 @@ typedef enum
|
|||||||
SDL_SYSWM_UNKNOWN,
|
SDL_SYSWM_UNKNOWN,
|
||||||
SDL_SYSWM_WINDOWS,
|
SDL_SYSWM_WINDOWS,
|
||||||
SDL_SYSWM_X11,
|
SDL_SYSWM_X11,
|
||||||
SDL_SYSWM_WAYLAND,
|
|
||||||
SDL_SYSWM_DIRECTFB,
|
SDL_SYSWM_DIRECTFB,
|
||||||
SDL_SYSWM_COCOA,
|
SDL_SYSWM_COCOA,
|
||||||
SDL_SYSWM_UIKIT,
|
SDL_SYSWM_UIKIT,
|
||||||
|
SDL_SYSWM_WAYLAND,
|
||||||
} SDL_SYSWM_TYPE;
|
} SDL_SYSWM_TYPE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -176,14 +176,6 @@ struct SDL_SysWMinfo
|
|||||||
Window window; /**< The X11 window */
|
Window window; /**< The X11 window */
|
||||||
} x11;
|
} x11;
|
||||||
#endif
|
#endif
|
||||||
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
struct wl_display *display; /**< Wayland display */
|
|
||||||
struct wl_surface *surface; /**< Wayland surface */
|
|
||||||
struct wl_shell_surface *shell_surface; /**< Wayland shell_surface (window manager handle) */
|
|
||||||
} wl;
|
|
||||||
#endif
|
|
||||||
#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
|
#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
@ -203,6 +195,14 @@ struct SDL_SysWMinfo
|
|||||||
{
|
{
|
||||||
UIWindow *window; /* The UIKit window */
|
UIWindow *window; /* The UIKit window */
|
||||||
} uikit;
|
} uikit;
|
||||||
|
#endif
|
||||||
|
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
struct wl_display *display; /**< Wayland display */
|
||||||
|
struct wl_surface *surface; /**< Wayland surface */
|
||||||
|
struct wl_shell_surface *shell_surface; /**< Wayland shell_surface (window manager handle) */
|
||||||
|
} wl;
|
||||||
#endif
|
#endif
|
||||||
/* Can't have an empty union */
|
/* Can't have an empty union */
|
||||||
int dummy;
|
int dummy;
|
||||||
|
Loading…
Reference in New Issue
Block a user