Tell SDL to notfree my video surfaces (Damn, no how-to write a SDL driver)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401104
This commit is contained in:
Patrice Mandin 2005-07-27 19:18:10 +00:00
parent d7493d7380
commit b298c8ca8f
2 changed files with 2 additions and 2 deletions

View file

@ -696,7 +696,7 @@ SDL_Surface *GEM_SetVideoMode(_THIS, SDL_Surface *current,
} }
/*--- Initialize screen ---*/ /*--- Initialize screen ---*/
modeflags = 0; modeflags = SDL_PREALLOC;
if (VDI_bpp == 8) { if (VDI_bpp == 8) {
modeflags |= SDL_HWPALETTE; modeflags |= SDL_HWPALETTE;
} }

View file

@ -529,7 +529,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
return(NULL); return(NULL);
} }
modeflags = SDL_FULLSCREEN; modeflags = SDL_FULLSCREEN | SDL_PREALLOC;
/* Allocate needed buffers: simple/double buffer and shadow surface */ /* Allocate needed buffers: simple/double buffer and shadow surface */
new_video_mode = XBIOS_videomodes[bpp][mode]; new_video_mode = XBIOS_videomodes[bpp][mode];