Skip to content

Commit aeb47f9

Browse files
committed
Add some comments regarding SDL_VIDEO_DRIVERS
Explain why some drivers are disabled by default.
1 parent 5dcd77e commit aeb47f9

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

sdlsyswm.inc

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,50 @@
1010
{$ENDIF}
1111
{$IFEND}
1212

13+
(*
14+
* Disabled because FPC does not ship a DirectFB unit.
15+
* If you have some working DirectDB bindings, feel welcome to enable this and check if it breaks anything.
16+
*)
17+
{$UNDEFINE SDL_VIDEO_DRIVER_DIRECTFB}
18+
1319
{$IFDEF DARWIN}
1420
{$DEFINE SDL_VIDEO_DRIVER_COCOA}
1521
{$ENDIF}
1622

23+
(*
24+
* Disabled because it's a Mac-specific video driver and we have no means of testing it.
25+
* If you own a Mac, feel welcome to enable this and check if it actually compiles and doesn't break anything.
26+
*)
27+
{$UNDEFINE SDL_VIDEO_DRIVER_UIKIT}
28+
29+
(*
30+
* Disabled because FPC does not ship a Wayland unit.
31+
* If you have some working Wayland bindings, feel welcome to enable this,
32+
* check if it actually compiles and doesn't break anything.
33+
*)
34+
{$UNDEFINE SDL_VIDEO_DRIVER_WAYLAND}
35+
36+
(*
37+
* Disabled because FPC does not ship a Mir unit.
38+
* Also, support for Mir has been removed in SDL 2.0.10.
39+
*)
40+
{$UNDEFINE SDL_VIDEO_DRIVER_MIR}
41+
42+
(*
43+
* Disabled because FPC does not support WinRT.
44+
*)
45+
{$UNDEFINE SDL_VIDEO_DRIVER_WINRT}
46+
1747
{$IFDEF ANDROID}
1848
{$DEFINE SDL_VIDEO_DRIVER_ANDROID}
1949
{$ENDIF}
2050

21-
{$IFDEF VIVANTE}
22-
{$DEFINE SDL_VIDEO_DRIVER_VIVANTE}
23-
{$ENDIF}
51+
(*
52+
* Disabled because this is an embedded platform and we have no means of testing this.
53+
* If you're actually working with Vivante, feel welcome to enable this
54+
* and check if it compiles and works properly.
55+
*)
56+
{$UNDEFINE SDL_VIDEO_DRIVER_VIVANTE}
2457

2558
{$IFDEF OS2}
2659
{$DEFINE SDL_VIDEO_DRIVER_OS2}

0 commit comments

Comments
 (0)