Adrian Veith wrote:
      //pcol^ := Plongword(p)^; -- changed
      pcol^ := (LongWord(p[3]) shl 24) + (LongWord(p[2]) shl 16) +
(LongWord(p[1]) shl 8) + LongWord(p[0]);
This looks like an endian issue. Aren't Bitmaps in Little Endian format (as per the usual endianess of the Intel x86 processor) and ARM can be either in big or little endian? This could explain the scrambling of this image too. Are there any routines in the RTL that could be used to get round this?

M
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to