From 6a787b800419873206fcb1970267f33a83fc5824 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 2 Aug 2023 17:00:10 +0300 Subject: [PATCH] SDL_video.c: move ngage video before offscreen. Reference issue: https://github.com/libsdl-org/SDL/pull/8069. (cherry picked from commit e2e87a536c1d05c41243747ad8e755398803b185) --- src/video/SDL_video.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 693b36a8c4df5..a29fd241bce59 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -18,6 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ + #include "../SDL_internal.h" /* The high-level video driver subsystem */ @@ -131,12 +132,12 @@ static VideoBootStrap *bootstrap[] = { &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_OFFSCREEN + &OFFSCREEN_bootstrap, +#endif #if SDL_VIDEO_DRIVER_DUMMY &DUMMY_bootstrap, #if SDL_INPUT_LINUXEV