mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-29 04:22:16 -05:00
w0rks now.
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@292 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
9afed68b7e
commit
1d85a03a11
@ -555,10 +555,10 @@ begin
|
|||||||
Self.SetSize(xe-xs+1 + x,ye-ys+1 + y);
|
Self.SetSize(xe-xs+1 + x,ye-ys+1 + y);
|
||||||
wi := Min(xe-xs + 1 + x,Self.w);
|
wi := Min(xe-xs + 1 + x,Self.w);
|
||||||
hi := Min(ye-ys + 1 + y,Self.h);
|
hi := Min(ye-ys + 1 + y,Self.h);
|
||||||
PtrRet := TMWindow(MWindow).ReturnData(xs,ys,wi,hi);
|
PtrRet := TMWindow(MWindow).ReturnData(xs,ys,wi - x,hi - y);
|
||||||
|
|
||||||
for yy := 0 to (hi-1) do
|
for yy := 0 to (hi-1 - y) do
|
||||||
Move(PtrRet.Ptr[yy * (wi + PtrRet.IncPtrWith)], FData[(yy + y) * self.w + x],wi * SizeOf(TRGB32));
|
Move(PtrRet.Ptr[yy * (wi - x + PtrRet.IncPtrWith)], FData[(yy + y) * self.w + x],wi * SizeOf(TRGB32));
|
||||||
TMWindow(MWindow).FreeReturnData;
|
TMWindow(MWindow).FreeReturnData;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user