mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 04:42:38 +02:00
LCL: carbon: initialize vars
git-svn-id: trunk@42587 -
This commit is contained in:
parent
ac9e433e89
commit
d4a64d7a2a
@ -423,6 +423,7 @@ begin
|
|||||||
WindowDrawInfo.state := WindowWidgetDrawInfo.windowState;
|
WindowDrawInfo.state := WindowWidgetDrawInfo.windowState;
|
||||||
WindowDrawInfo.titleHeight := WindowWidgetDrawInfo.titleHeight;
|
WindowDrawInfo.titleHeight := WindowWidgetDrawInfo.titleHeight;
|
||||||
WindowDrawInfo.titleWidth := WindowWidgetDrawInfo.titleWidth;
|
WindowDrawInfo.titleWidth := WindowWidgetDrawInfo.titleWidth;
|
||||||
|
WindowShape:=nil;
|
||||||
HIThemeGetWindowShape(BtnRect, WindowDrawInfo, WindowRegion, WindowShape);
|
HIThemeGetWindowShape(BtnRect, WindowDrawInfo, WindowRegion, WindowShape);
|
||||||
HIShapeGetBounds(WindowShape, BtnRect);
|
HIShapeGetBounds(WindowShape, BtnRect);
|
||||||
Offset := CGRectToRect(BtnRect).TopLeft;
|
Offset := CGRectToRect(BtnRect).TopLeft;
|
||||||
@ -597,6 +598,7 @@ begin
|
|||||||
WindowDrawInfo.titleHeight := 0;
|
WindowDrawInfo.titleHeight := 0;
|
||||||
WindowDrawInfo.titleWidth := 0;
|
WindowDrawInfo.titleWidth := 0;
|
||||||
|
|
||||||
|
WindowShape:=nil;
|
||||||
HIThemeGetWindowShape(BtnRect, WindowDrawInfo, kWindowCloseBoxRgn, WindowShape);
|
HIThemeGetWindowShape(BtnRect, WindowDrawInfo, kWindowCloseBoxRgn, WindowShape);
|
||||||
HIShapeGetBounds(WindowShape, BtnRect);
|
HIShapeGetBounds(WindowShape, BtnRect);
|
||||||
with BtnRect.size do
|
with BtnRect.size do
|
||||||
|
Loading…
Reference in New Issue
Block a user