# HG changeset patch # User Patrice Mandin # Date 1122491890 0 # Node ID 18e5babe266eb90c4858b0bff579ca9852d4d93f # Parent f0919504adfd7b9efd595efb31d1afe1df13a07c Tell SDL to notfree my video surfaces (Damn, no how-to write a SDL driver) diff -r f0919504adfd -r 18e5babe266e src/video/gem/SDL_gemvideo.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; } diff -r f0919504adfd -r 18e5babe266e src/video/xbios/SDL_xbios.c --- 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];