Alignment question

Sam,

I have a quick question re: surface->pixels. Is that pointer guaranteed
to have any particular alignment?

It has whatever alignment is given by “malloc()” for memory pointers,
and is almost assuredly word-aligned.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/