You can specify the format for pixel data in SDL_RenderReadPixels() and SDL_RenderWritePixels()

This code still doesn't quite work yet. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404174
This commit is contained in:
Sam Lantinga 2009-11-16 07:13:07 +00:00
parent ea4fb3a1a4
commit 0f620b7fe4
7 changed files with 82 additions and 50 deletions

View file

@ -67,7 +67,7 @@ static int render_compare( const char *msg, const SurfaceImage_t *s )
return 1;
/* Read pixels. */
ret = SDL_RenderReadPixels( NULL, pix, 80*4 );
ret = SDL_RenderReadPixels( NULL, FORMAT, pix, 80*4 );
if (SDL_ATassert( "SDL_RenderReadPixels", ret==0) )
return 1;