mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 02:29:34 +02:00
LCL-Win32: Optimize TWindowProcHelper.CalcClipRgn a little. Issue #35467
git-svn-id: branches/fixes_2_0@63463 -
This commit is contained in:
parent
78d3e2b922
commit
b53f32952d
@ -491,7 +491,7 @@ end;
|
||||
|
||||
procedure TWindowProcHelper.CalcClipRgn(PaintRegion: HRGN);
|
||||
var
|
||||
nSize, BytesCount: DWORD;
|
||||
nSize: DWORD;
|
||||
RgnData: PRgnData;
|
||||
WindowOrg: Windows.POINT;
|
||||
XFRM: TXFORM;
|
||||
@ -525,8 +525,7 @@ begin
|
||||
XFRM.eM11:=-1; XFRM.eM12:=0;
|
||||
XFRM.eM21:=0; XFRM.eM22:=1;
|
||||
|
||||
// ToDo: BytesCount is not initialized.
|
||||
MirroredPaintRgn := ExtCreateRegion(@XFRM, BytesCount, RgnData^);
|
||||
MirroredPaintRgn := ExtCreateRegion(@XFRM, nSize, RgnData^);
|
||||
Windows.SelectClipRgn(CurDoubleBuffer.DC, MirroredPaintRgn);
|
||||
Windows.DeleteObject(MirroredPaintRgn);
|
||||
Freemem(RgnData);
|
||||
|
Loading…
Reference in New Issue
Block a user