lcl: fixed a copy paste error of r31019 #a4437fdf73 (noticed by David Jenkins, issue #0021736)

git-svn-id: trunk@36810 -
This commit is contained in:
paul 2012-04-16 06:24:48 +00:00
parent 4f73e905fc
commit 2273a3b919

View File

@ -1519,8 +1519,8 @@ procedure TRawImage.ExtractRect(const ARect: TRect; out ADst: TRawImage);
// dst[byte|bit]: 12 11 10 07 06 05 04 03 :
for x := 0 to ByteCount - 1 do
begin
DstW1 := SrcPos[0] shl Shift0;
DstPos^ := Byte(DstW1 or (SrcPos[1] shr Shift1));
DstW1 := SrcPos[0] shr Shift0;
DstPos^ := Byte(DstW1 or (SrcPos[1] shl Shift1));
inc(SrcPos);
inc(DstPos);
end;