Skip to content

Commit d0defc9

Browse files
Update TSDL_SYSWM_TYPE
1 parent 6f5798c commit d0defc9

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

units/sdlsyswm.inc

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,29 @@
6767
{**
6868
* These are the various supported windowing subsystems
6969
*}
70-
Type
71-
TSDL_SYSWM_TYPE = (
72-
SDL_SYSWM_UNKNOWN,
73-
SDL_SYSWM_WINDOWS,
74-
SDL_SYSWM_X11,
75-
SDL_SYSWM_DIRECTFB,
76-
SDL_SYSWM_COCOA,
77-
SDL_SYSWM_UIKIT,
78-
SDL_SYSWM_WAYLAND, // Since SDL 2.0.2 - REMOVED in SDL 2.0.10!
79-
SDL_SYSWM_MIR, // Since SDL 2.0.2
80-
SDL_SYSWM_WINRT, // Since SDL 2.0.3
81-
SDL_SYSWM_ANDROID, // Since SDL 2.0.4
82-
SDL_SYSWM_VIVANTE, // Since SDL 2.0.5
83-
SDL_SYSWM_OS2, // Since SDL 2.0.6
84-
SDL_SYSWM_HAIKU // Since SDL 2.0.12
85-
);
70+
type
71+
TSDL_SYSWM_TYPE = type cint;
72+
73+
const
74+
SDL_SYSWM_UNKNOWN = TSDL_SYSWM_TYPE(0);
75+
SDL_SYSWM_WINDOWS = TSDL_SYSWM_TYPE(1);
76+
SDL_SYSWM_X11 = TSDL_SYSWM_TYPE(2);
77+
SDL_SYSWM_DIRECTFB = TSDL_SYSWM_TYPE(3);
78+
SDL_SYSWM_COCOA = TSDL_SYSWM_TYPE(4);
79+
SDL_SYSWM_UIKIT = TSDL_SYSWM_TYPE(5);
80+
SDL_SYSWM_WAYLAND = TSDL_SYSWM_TYPE(6);
81+
SDL_SYSWM_MIR = TSDL_SYSWM_TYPE(7); // * no longer available, left for API/ABI compatibility. Remove in 2.1! *
82+
SDL_SYSWM_WINRT = TSDL_SYSWM_TYPE(8);
83+
SDL_SYSWM_ANDROID = TSDL_SYSWM_TYPE(9);
84+
SDL_SYSWM_VIVANTE = TSDL_SYSWM_TYPE(10);
85+
SDL_SYSWM_OS2 = TSDL_SYSWM_TYPE(11);
86+
SDL_SYSWM_HAIKU = TSDL_SYSWM_TYPE(12);
87+
SDL_SYSWM_KMSDRM = TSDL_SYSWM_TYPE(13);
88+
SDL_SYSWM_RISCOS = TSDL_SYSWM_TYPE(14);
8689

8790
/// sdl_syswm.h uses anonymous structs, declared right in SDL_SysWMmsg and SDL_SysWMinfo.
8891
/// Since Pascal does not allow this, we workaround by introducing named types.
92+
type
8993
{$IFDEF SDL_VIDEO_DRIVER_WINDOWS}
9094
__SYSWM_WINDOWS = record
9195
hwnd: HWND; {**< The window for the message }

0 commit comments

Comments
 (0)