Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios.c @ 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 |
comparison
equal
deleted
inserted
replaced
1102:f0919504adfd | 1103:18e5babe266e |
---|---|
527 if ( SDL_modelist[bpp][mode] == NULL ) { | 527 if ( SDL_modelist[bpp][mode] == NULL ) { |
528 SDL_SetError("Couldn't find requested mode in list"); | 528 SDL_SetError("Couldn't find requested mode in list"); |
529 return(NULL); | 529 return(NULL); |
530 } | 530 } |
531 | 531 |
532 modeflags = SDL_FULLSCREEN; | 532 modeflags = SDL_FULLSCREEN | SDL_PREALLOC; |
533 | 533 |
534 /* Allocate needed buffers: simple/double buffer and shadow surface */ | 534 /* Allocate needed buffers: simple/double buffer and shadow surface */ |
535 new_video_mode = XBIOS_videomodes[bpp][mode]; | 535 new_video_mode = XBIOS_videomodes[bpp][mode]; |
536 new_depth = new_video_mode->depth; | 536 new_depth = new_video_mode->depth; |
537 if (new_depth == 4) { | 537 if (new_depth == 4) { |