mirror of
https://github.com/yawut/SDL.git
synced 2026-08-23 09:15:18 -05:00
Tell SDL to notfree my video surfaces (Damn, no how-to write a SDL driver)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user