Merged revision(s) 53790 #b77917bbc2 from trunk:

LCL: TWinControl: refreshing RawImage data after painting on canvas. Issue #25448
........

git-svn-id: branches/fixes_1_6@53794 -
This commit is contained in:
maxim 2016-12-28 21:36:26 +00:00
parent fe536bad5f
commit bbcff6b780
2 changed files with 2 additions and 2 deletions

View File

@ -2573,8 +2573,7 @@ var
begin
Result := TBitmap.Create;
try
Result.Width := ClientWidth;
Result.Height := ClientHeight;
Result.SetSize(ClientWidth, ClientHeight);
LCLIntf.GetWindowRect(Handle, ARect);
with GetClientOrigin do
PaintTo(Result.Canvas, ARect.Left - X, ARect.Top - Y);

View File

@ -5027,6 +5027,7 @@ end;
procedure TWinControl.PaintTo(ACanvas: TCanvas; X, Y: Integer);
begin
PaintTo(ACanvas.Handle, X, Y);
ACanvas.Changed;
end;
procedure TWinControl.SetShape(AShape: TBitmap);