Mercurial > sdl-ios-xcode
changeset 1103:18e5babe266e
Tell SDL to notfree my video surfaces (Damn, no how-to write a SDL driver)
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Wed, 27 Jul 2005 19:18:10 +0000 |
parents | f0919504adfd |
children | bf145eaf76ef |
files | src/video/gem/SDL_gemvideo.c src/video/xbios/SDL_xbios.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.c Wed Jul 27 16:30:12 2005 +0000 +++ b/src/video/gem/SDL_gemvideo.c Wed Jul 27 19:18:10 2005 +0000 @@ -696,7 +696,7 @@ } /*--- Initialize screen ---*/ - modeflags = 0; + modeflags = SDL_PREALLOC; if (VDI_bpp == 8) { modeflags |= SDL_HWPALETTE; }
--- a/src/video/xbios/SDL_xbios.c Wed Jul 27 16:30:12 2005 +0000 +++ b/src/video/xbios/SDL_xbios.c Wed Jul 27 19:18:10 2005 +0000 @@ -529,7 +529,7 @@ 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];