Skip to content

Commit

Permalink
Tell SDL to notfree my video surfaces (Damn, no how-to write a SDL dr…
Browse files Browse the repository at this point in the history
…iver)
  • Loading branch information
pmandin committed Jul 27, 2005
1 parent f2a8e0a commit 4bb0138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/video/gem/SDL_gemvideo.c
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/video/xbios/SDL_xbios.c
Expand Up @@ -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];
Expand Down

0 comments on commit 4bb0138

Please sign in to comment.