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

This commit is contained in:
Patrice Mandin
2005-07-27 19:18:10 +00:00
parent 8fbcf757f8
commit 490d31293d
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 ---*/
modeflags = 0;
modeflags = SDL_PREALLOC;
if (VDI_bpp == 8) {
modeflags |= SDL_HWPALETTE;
}

View File

@@ -529,7 +529,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
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];