Tell SDL to notfree my video surfaces (Damn, no how-to write a SDL driver)
authorPatrice Mandin
Wed, 27 Jul 2005 19:18:10 +0000
changeset 110318e5babe266e
parent 1102 f0919504adfd
child 1104 bf145eaf76ef
Tell SDL to notfree my video surfaces (Damn, no how-to write a SDL driver)
src/video/gem/SDL_gemvideo.c
src/video/xbios/SDL_xbios.c
     1.1 --- a/src/video/gem/SDL_gemvideo.c	Wed Jul 27 16:30:12 2005 +0000
     1.2 +++ b/src/video/gem/SDL_gemvideo.c	Wed Jul 27 19:18:10 2005 +0000
     1.3 @@ -696,7 +696,7 @@
     1.4  	}
     1.5  
     1.6  	/*--- Initialize screen ---*/
     1.7 -	modeflags = 0;
     1.8 +	modeflags = SDL_PREALLOC;
     1.9  	if (VDI_bpp == 8) {
    1.10  		modeflags |= SDL_HWPALETTE;
    1.11  	}
     2.1 --- a/src/video/xbios/SDL_xbios.c	Wed Jul 27 16:30:12 2005 +0000
     2.2 +++ b/src/video/xbios/SDL_xbios.c	Wed Jul 27 19:18:10 2005 +0000
     2.3 @@ -529,7 +529,7 @@
     2.4  		return(NULL);
     2.5  	}
     2.6  
     2.7 -	modeflags = SDL_FULLSCREEN;
     2.8 +	modeflags = SDL_FULLSCREEN | SDL_PREALLOC;
     2.9  
    2.10  	/* Allocate needed buffers: simple/double buffer and shadow surface */
    2.11  	new_video_mode = XBIOS_videomodes[bpp][mode];