Tell SDL to notfree my video surfaces (Damn, no how-to write a SDL driver)
authorPatrice Mandin <patmandin@gmail.com>
Wed, 27 Jul 2005 19:18:10 +0000
changeset 1103 18e5babe266e
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
--- a/src/video/gem/SDL_gemvideo.c	Wed Jul 27 16:30:12 2005 +0000
+++ b/src/video/gem/SDL_gemvideo.c	Wed Jul 27 19:18:10 2005 +0000
@@ -696,7 +696,7 @@
 	}
 
 	/*--- Initialize screen ---*/
-	modeflags = 0;
+	modeflags = SDL_PREALLOC;
 	if (VDI_bpp == 8) {
 		modeflags |= SDL_HWPALETTE;
 	}
--- a/src/video/xbios/SDL_xbios.c	Wed Jul 27 16:30:12 2005 +0000
+++ b/src/video/xbios/SDL_xbios.c	Wed Jul 27 19:18:10 2005 +0000
@@ -529,7 +529,7 @@
 		return(NULL);
 	}
 
-	modeflags = SDL_FULLSCREEN;
+	modeflags = SDL_FULLSCREEN | SDL_PREALLOC;
 
 	/* Allocate needed buffers: simple/double buffer and shadow surface */
 	new_video_mode = XBIOS_videomodes[bpp][mode];