mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 14:40:24 +02:00
lcl: TCustomForm.GetMonitor consider poDefaultPosOnly
This commit is contained in:
parent
2f157a3810
commit
c161bf52f0
@ -2427,7 +2427,7 @@ begin
|
||||
begin
|
||||
// first time showing, check Position and DefaultMonitor
|
||||
case Position of
|
||||
poDefault:
|
||||
poDefault, poDefaultPosOnly:
|
||||
Result := Screen.MonitorFromWindow(Handle, mdNull);
|
||||
poDesigned, poDefaultSizeOnly:
|
||||
Result := Screen.MonitorFromPoint(point(Left,Top));
|
||||
|
Loading…
Reference in New Issue
Block a user