How can I do blit a surface in reverse mode (X,Y and both)?

Hello,
I want draw a surface in normal mode and reverse X,Y and both, it supports this?

thanks

Reverse X:

void revxblit(SDL_Surface * src_surf, SDL_Surface * dest_surf, int x, int y)
{
int col;
SDL_Rect src, dest;

for (col = 0; col < src_surf->w; col++)
{
dest.x = x + col;
dest.y = y;

src.x = src_surf->w - col;
src.y = 0;
src.w = 1;
src.h = 0;

SDL_BlitSurface(src_surf, &src, dest_surf, &dest);

}
}

Y will be similar.

Reversed X and Y will be a little harder.

-bill!On Sun, Apr 13, 2003 at 04:57:13PM +0200, Roberto Prieto wrote:

Hello,
I want draw a surface in normal mode and reverse X,Y and both, it supports this?


bill at newbreedsoftware.com Hire me!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/bill/resume/