Victor ErV2005@rambler.ru writes:
I've changed things a bit and resubmitted patch. Now there will be less ifdefs.
Not much better I'm afraid.
I'm not sure which "data types" are you talking about, since I'll need per-byte surface access in any case, and It doesn't look like it can be wrapped into endianness-independant datatype.
No, you shouldn't be accessing the surface per byte either, the access should depend on the format, i.e. for a 32-bit format you want to access DWORD by DWORD.