[fpc-pascal] fpGUI Toolkit on WinCE

Matt Emson memson.lists at googlemail.com
Tue Mar 16 10:37:48 CET 2010

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?


More information about the fpc-pascal mailing list