Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Changed format of video texture to something compatible with iPhone .…

….. 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 4ef0a32fdc91d39b6f332c2a962907dc802ed804
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/SDL_compat.c
@@ -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);

0 comments on commit 4ef0a32

Please sign in to comment.