[SDL] Android: SDL_RenderCopy using dest rectangle not working

Forest Hale havoc at ghdigital.com
Fri Jul 29 04:36:27 PDT 2011

I don't know anything about the specifics of what is going on there, but keep in mind that copying image data is not a strongpoint of GLES, perhaps the SDL_RendererCopy implementation is using 
functionality not present on GLES?

On 07/29/2011 04:34 AM, William Dyce wrote:
> Hi chaps,
> Sorry to both you again, I have a little problem here. The following works fine, stretching a whole image across the whole screen:
> *SDL_RenderCopy(renderer, sprite, NULL, NULL);*
> If I try to specific where to draw the sprite though, that is its destination rectangle, I get just a black square under Android:
> *SDL_RenderCopy(renderer, sprite, NULL, &rect);
> *
> Under Linux everything works fine. Any idea what might be causing this?
> I'm thinking it has to do with how the window's size is overridden by the mobile's screen-size...
> William
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier

More information about the SDL mailing list