Date: Mon, 14 Apr 2003 22:08:27 +0100
authorSam Lantinga <slouken@libsdl.org>
Tue, 15 Apr 2003 15:46:56 +0000
changeset 61095433459fbd2
parent 609 a30b17e09cc0
child 611 0a2ef9e8ca41
Date: Mon, 14 Apr 2003 22:08:27 +0100
From: Patrice Mandin
Subject: [SDL][PATCH] 2 patches for sdl

Here are 2 patches for SDL:

- One is to put the dummy video drivers at the end of the
video drivers list. It gave me problems, when
SDL_VIDEODRIVER is not set, and the dummy driver is used
instead of the platform's driver, just because it is
always available. So the dummy driver must always be at
the end of the list. I suppose picogui and dc video
drivers also don't work.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Sat Mar 22 17:39:26 2003 +0000
     1.2 +++ b/src/video/SDL_video.c	Tue Apr 15 15:46:56 2003 +0000
     1.3 @@ -76,7 +76,7 @@
     1.4  	&SVGALIB_bootstrap,
     1.5  #endif
     1.6  #ifdef ENABLE_AALIB
     1.7 -    &AALIB_bootstrap,
     1.8 +	&AALIB_bootstrap,
     1.9  #endif
    1.10  #ifdef ENABLE_DIRECTX
    1.11  	&DIRECTX_bootstrap,
    1.12 @@ -105,9 +105,6 @@
    1.13  #ifdef ENABLE_EPOC
    1.14  	&EPOC_bootstrap,
    1.15  #endif
    1.16 -#ifdef ENABLE_DUMMYVIDEO
    1.17 -	&DUMMY_bootstrap,
    1.18 -#endif
    1.19  #ifdef ENABLE_XBIOS
    1.20  	&XBIOS_bootstrap,
    1.21  #endif
    1.22 @@ -120,6 +117,9 @@
    1.23  #ifdef ENABLE_DC
    1.24  	&DC_bootstrap,
    1.25  #endif
    1.26 +#ifdef ENABLE_DUMMYVIDEO
    1.27 +	&DUMMY_bootstrap,
    1.28 +#endif
    1.29  	NULL
    1.30  };
    1.31