mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 07:38:14 +02:00
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:
parent
fe536bad5f
commit
bbcff6b780
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user