Commit 66d5ad19f0260f42426a66fe664b6e98291faa37

Ozkan Sezer 2023-08-02T14:05:55

SDL_video.c: move os2 video before offscreen. as offscreen is enabled in CMakeLists.txt, we get a blanks window otherwise. From a patch by Silvan Scherrer, at Bitwiseworks' fork.

diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index f3a78e0..34fc4c1 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -127,16 +127,16 @@ static VideoBootStrap *bootstrap[] = {
 #if SDL_VIDEO_DRIVER_QNX
     &QNX_bootstrap,
 #endif
+#if SDL_VIDEO_DRIVER_OS2
+    &OS2DIVE_bootstrap,
+    &OS2VMAN_bootstrap,
+#endif
 #if SDL_VIDEO_DRIVER_OFFSCREEN
     &OFFSCREEN_bootstrap,
 #endif
 #if SDL_VIDEO_DRIVER_NGAGE
     &NGAGE_bootstrap,
 #endif
-#if SDL_VIDEO_DRIVER_OS2
-    &OS2DIVE_bootstrap,
-    &OS2VMAN_bootstrap,
-#endif
 #if SDL_VIDEO_DRIVER_DUMMY
     &DUMMY_bootstrap,
 #if SDL_INPUT_LINUXEV