Commit b298c8ca authored by Patrice Mandin's avatar Patrice Mandin

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
parent d7493d73
...@@ -696,7 +696,7 @@ SDL_Surface *GEM_SetVideoMode(_THIS, SDL_Surface *current, ...@@ -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;
} }
......
...@@ -529,7 +529,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current, ...@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment