mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-04 13:56:01 +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 NSToLCLRect(const ns: NSRect; ParentHeight: Single; out lcl: TRect);
|
||||||
procedure LCLToNSRect(const lcl: TRect; ParentHeight: Single; out ns: NSRect);
|
procedure LCLToNSRect(const lcl: TRect; ParentHeight: Single; out ns: NSRect);
|
||||||
|
|
||||||
function NSScreenZeroHeight: CGFloat;
|
|
||||||
function NSPrimaryScreenHeight: CGFloat;
|
function NSPrimaryScreenHeight: CGFloat;
|
||||||
function NSGlobalScreenHeight: CGFloat;
|
function NSGlobalScreenHeight: CGFloat;
|
||||||
|
|
||||||
@ -753,11 +752,6 @@ begin
|
|||||||
ns.size.height:=lcl.Bottom-lcl.Top;
|
ns.size.height:=lcl.Bottom-lcl.Top;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function NSScreenZeroHeight: CGFloat;
|
|
||||||
begin
|
|
||||||
Result := NSScreen(NSScreen.screens.objectAtIndex(0)).frame.size.height;
|
|
||||||
end;
|
|
||||||
|
|
||||||
// the height of primary display
|
// the height of primary display
|
||||||
function NSPrimaryScreenHeight: CGFloat;
|
function NSPrimaryScreenHeight: CGFloat;
|
||||||
begin
|
begin
|
||||||
|
@ -1333,23 +1333,6 @@ begin
|
|||||||
Point.y := contentView.bounds.size.height - Point.y;
|
Point.y := contentView.bounds.size.height - Point.y;
|
||||||
end;
|
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);
|
procedure LCLWindowExtension.lclSetFrame(const r: TRect);
|
||||||
var
|
var
|
||||||
ns : NSRect;
|
ns : NSRect;
|
||||||
|
Loading…
Reference in New Issue
Block a user