changeset 2371:3eb72191bb7e gsoc2008_iphone

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.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Fri, 18 Jul 2008 18:45:36 +0000
parents 73d04b25c118
children 06d986e73eb0
files src/SDL_compat.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/SDL_compat.c	Fri Jul 18 18:41:08 2008 +0000
+++ b/src/SDL_compat.c	Fri Jul 18 18:45:36 2008 +0000
@@ -521,14 +521,18 @@
     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);