Cocoa: Cursor: all enableCursorRects() removed

This commit is contained in:
rich2014 2023-06-11 23:32:34 +08:00
parent b9002774db
commit 5e66a6fc46

View File

@ -266,7 +266,6 @@ begin
{$else} {$else}
win := TCocoaPanel(win.initWithContentRect_styleMask_backing_defer(R, WinMask, NSBackingStoreBuffered, False)); win := TCocoaPanel(win.initWithContentRect_styleMask_backing_defer(R, WinMask, NSBackingStoreBuffered, False));
{$endif} {$endif}
win.enableCursorRects;
win.setLevel(HintWindowLevel); win.setLevel(HintWindowLevel);
win.setDelegate(win); win.setDelegate(win);
{$ifdef BOOLFIX} {$ifdef BOOLFIX}
@ -767,7 +766,6 @@ begin
// see issue http://bugs.freepascal.org/view.php?id=28473 // see issue http://bugs.freepascal.org/view.php?id=28473
if not (csDesigning in AWinControl.ComponentState) then if not (csDesigning in AWinControl.ComponentState) then
WindowSetFormStyle(win, Form.FormStyle); WindowSetFormStyle(win, Form.FormStyle);
win.enableCursorRects;
TCocoaWindow(win).callback := cb; TCocoaWindow(win).callback := cb;
cb.window := win; cb.window := win;