comparison src/SDL_compat.c @ 2765:f55c87ae336b

Final merge of Google Summer of Code 2008 work... Bring SDL to iPhone and iPod Touch by Holmes Futrell, mentored by Sam Lantinga
author Sam Lantinga <slouken@libsdl.org>
date Sat, 04 Oct 2008 06:46:59 +0000
parents 204be4fc2726
children 5651642f4a78
comparison
equal deleted inserted replaced
2764:4868c0df2e83 2765:f55c87ae336b
519 519
520 /* Create a texture for the screen surface */ 520 /* Create a texture for the screen surface */
521 SDL_VideoTexture = 521 SDL_VideoTexture =
522 SDL_CreateTexture(desired_format, SDL_TEXTUREACCESS_STREAMING, width, 522 SDL_CreateTexture(desired_format, SDL_TEXTUREACCESS_STREAMING, width,
523 height); 523 height);
524
524 if (!SDL_VideoTexture) { 525 if (!SDL_VideoTexture) {
525 SDL_VideoTexture = 526 SDL_VideoTexture =
526 SDL_CreateTexture(SDL_PIXELFORMAT_RGB888, 527 SDL_CreateTexture(SDL_PIXELFORMAT_ABGR8888,
527 SDL_TEXTUREACCESS_STREAMING, width, height); 528 SDL_TEXTUREACCESS_STREAMING, width, height);
528 } 529 }
529 if (!SDL_VideoTexture) { 530 if (!SDL_VideoTexture) {
530 return NULL; 531 return NULL;
531 } 532 }
533
534 SDL_SetTextureBlendMode(SDL_VideoTexture, SDL_TEXTUREBLENDMODE_NONE);
535
532 536
533 /* Create the screen surface */ 537 /* Create the screen surface */
534 SDL_VideoSurface = CreateVideoSurface(SDL_VideoTexture); 538 SDL_VideoSurface = CreateVideoSurface(SDL_VideoTexture);
535 if (!SDL_VideoSurface) { 539 if (!SDL_VideoSurface) {
536 return NULL; 540 return NULL;