Final merge of Google Summer of Code 2008 work...
Bring SDL to iPhone and iPod Touch by Holmes Futrell, mentored by Sam Lantinga --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403222
This commit is contained in:
parent
338ff54f1e
commit
c6ac35a2bb
113 changed files with 27686 additions and 22 deletions
|
@ -521,15 +521,19 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
|
|||
SDL_VideoTexture =
|
||||
SDL_CreateTexture(desired_format, SDL_TEXTUREACCESS_STREAMING, width,
|
||||
height);
|
||||
|
||||
if (!SDL_VideoTexture) {
|
||||
SDL_VideoTexture =
|
||||
SDL_CreateTexture(SDL_PIXELFORMAT_RGB888,
|
||||
SDL_CreateTexture(SDL_PIXELFORMAT_ABGR8888,
|
||||
SDL_TEXTUREACCESS_STREAMING, width, height);
|
||||
}
|
||||
if (!SDL_VideoTexture) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SDL_SetTextureBlendMode(SDL_VideoTexture, SDL_TEXTUREBLENDMODE_NONE);
|
||||
|
||||
|
||||
/* Create the screen surface */
|
||||
SDL_VideoSurface = CreateVideoSurface(SDL_VideoTexture);
|
||||
if (!SDL_VideoSurface) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue