Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Changed format of video texture to something compatible with iPhone .…
Browse files Browse the repository at this point in the history
….. a better solution is probably needed. Also set blending mode of video texture to none.
  • Loading branch information
Holmes Futrell committed Jul 18, 2008
1 parent 3ee5dcd commit 4ef0a32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/SDL_compat.c
Expand Up @@ -521,14 +521,18 @@ 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);
Expand Down

0 comments on commit 4ef0a32

Please sign in to comment.