mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
Cocoa/MultiDisplay: unused functions removed
This commit is contained in:
parent
8750601c96
commit
afc2dae9d3
@ -42,7 +42,6 @@ function NSRectToRect(const NS: NSRect): TRect;
|
||||
procedure NSToLCLRect(const ns: NSRect; ParentHeight: Single; out lcl: TRect);
|
||||
procedure LCLToNSRect(const lcl: TRect; ParentHeight: Single; out ns: NSRect);
|
||||
|
||||
function NSScreenZeroHeight: CGFloat;
|
||||
function NSPrimaryScreenHeight: CGFloat;
|
||||
function NSGlobalScreenHeight: CGFloat;
|
||||
|
||||
@ -753,11 +752,6 @@ begin
|
||||
ns.size.height:=lcl.Bottom-lcl.Top;
|
||||
end;
|
||||
|
||||
function NSScreenZeroHeight: CGFloat;
|
||||
begin
|
||||
Result := NSScreen(NSScreen.screens.objectAtIndex(0)).frame.size.height;
|
||||
end;
|
||||
|
||||
// the height of primary display
|
||||
function NSPrimaryScreenHeight: CGFloat;
|
||||
begin
|
||||
|
@ -1333,23 +1333,6 @@ begin
|
||||
Point.y := contentView.bounds.size.height - Point.y;
|
||||
end;
|
||||
|
||||
procedure NSScreenGetRect(sc: NSScreen; mainScreenHeight: double; out r: TRect);
|
||||
var
|
||||
fr : NSRect;
|
||||
begin
|
||||
fr := sc.frame;
|
||||
r := Bounds(
|
||||
Round(fr.origin.x),
|
||||
Round(fr.origin.y - fr.size.height + mainScreenHeight),
|
||||
Round(fr.size.width), Round(fr.size.height)
|
||||
);
|
||||
end;
|
||||
|
||||
procedure NSScreenGetRect(sc: NSScreen; out r: TRect);
|
||||
begin
|
||||
NSScreenGetRect(sc, NSScreen.mainScreen.frame.size.height, r);
|
||||
end;
|
||||
|
||||
procedure LCLWindowExtension.lclSetFrame(const r: TRect);
|
||||
var
|
||||
ns : NSRect;
|
||||
|
Loading…
Reference in New Issue
Block a user