Skip to content
Permalink
Browse files

Tell SDL to notfree my video surfaces (Damn, no how-to write a SDL dr…

…iver)
  • Loading branch information
pmandin committed Jul 27, 2005
1 parent f2a8e0a commit 4bb0138e18320778134ec1b6d8aaec0c145fe111
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/video/gem/SDL_gemvideo.c
  2. +1 −1 src/video/xbios/SDL_xbios.c
@@ -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;
}
@@ -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];

0 comments on commit 4bb0138

Please sign in to comment.