Mercurial > sdl-ios-xcode
view Xcode-iPhoneOS/Test/README @ 3315:87ffdad11607
Fixed bug #761
Mason Wheeler 2009-07-05 09:28:33 PDT
This patch fixes two issues with SDL_CreateTextureFromSurface.
1. If no renderer is available, the function will return 0 without calling
SDL_SetError. (It does this in other places as well, but it appears that in
these cases, SDL_SetError was already called by a previous function call.)
2. Removal of a dead code block that checks for an impossible return value.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 26 Sep 2009 10:13:44 +0000 |
parents | 20326ba2bda2 |
children |
line wrap: on
line source
TestiPhoneOS.xcodeproj contains targets to compile many of the SDL test programs for iPhone OS. Most of these test programs work fine, with the following exceptions: testalpha: Program crashes. Problem appears to effect Mac OS X as well. testhread: SIGTERM kills the process immediately without executing the 'kill' function. The posix standard says this shouldn't happen. Apple seems intent on having iPhone apps exit promptly when the user requests it, so maybe that's why(?) testlock: Locks appear to work, but there doesn't appear to be a simple way to send the process SIGINT. testpalette: "SDL error: blitting boat: Blit combination not supported." Happens on Mac OS X as well. testsprite2: SDL_CreateTextureFromSurface requests an ARGB pixel format, but iPhone's SDL video driver only supports ABGR. testwin: Behaves as it does under Mac OS X ... not sure if that is correctly or not. threadwin: Works if -threaded is not on. Otherwise it doesn't work, but this is true under Mac OS X as well.