Browse Source

SDL_video.c: move ngage video before offscreen.

Reference issue: https://github.com/libsdl-org/SDL/pull/8069.
Ozkan Sezer 2 years ago
parent
commit
e2e87a536c
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/video/SDL_video.c

+ 4 - 3
src/video/SDL_video.c

@@ -18,6 +18,7 @@
      misrepresented as being the original software.
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   3. This notice may not be removed or altered from any source distribution.
 */
 */
+
 #include "../SDL_internal.h"
 #include "../SDL_internal.h"
 
 
 /* The high-level video driver subsystem */
 /* The high-level video driver subsystem */
@@ -131,12 +132,12 @@ static VideoBootStrap *bootstrap[] = {
     &OS2DIVE_bootstrap,
     &OS2DIVE_bootstrap,
     &OS2VMAN_bootstrap,
     &OS2VMAN_bootstrap,
 #endif
 #endif
-#if SDL_VIDEO_DRIVER_OFFSCREEN
-    &OFFSCREEN_bootstrap,
-#endif
 #if SDL_VIDEO_DRIVER_NGAGE
 #if SDL_VIDEO_DRIVER_NGAGE
     &NGAGE_bootstrap,
     &NGAGE_bootstrap,
 #endif
 #endif
+#if SDL_VIDEO_DRIVER_OFFSCREEN
+    &OFFSCREEN_bootstrap,
+#endif
 #if SDL_VIDEO_DRIVER_DUMMY
 #if SDL_VIDEO_DRIVER_DUMMY
     &DUMMY_bootstrap,
     &DUMMY_bootstrap,
 #if SDL_INPUT_LINUXEV
 #if SDL_INPUT_LINUXEV