Changeset 193 for branches/highdpi/LocalPlayer/Term.pas
- Timestamp:
- May 7, 2020, 7:05:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Term.pas
r179 r193 2503 2503 SetMainTextureByAge(-1); 2504 2504 Tribes.Init; 2505 HelpDlg.UserLeft := ( Screen.width - HelpDlg.width) div 2;2506 HelpDlg.UserTop := ( Screen.height - HelpDlg.height) div 2;2505 HelpDlg.UserLeft := (DpiScreen.width - HelpDlg.width) div 2; 2506 HelpDlg.UserTop := (DpiScreen.height - HelpDlg.height) div 2; 2507 2507 HelpDlg.Difficulty := 0; 2508 2508 if Command = cStartCredits then … … 2566 2566 ListDlg.UserLeft := 8; 2567 2567 ListDlg.UserTop := TopBarHeight + 8; 2568 HelpDlg.UserLeft := Screen.width - HelpDlg.width - 8;2568 HelpDlg.UserLeft := DpiScreen.width - HelpDlg.width - 8; 2569 2569 HelpDlg.UserTop := TopBarHeight + 8; 2570 2570 UnitStatDlg.UserLeft := 397; 2571 2571 UnitStatDlg.UserTop := TopBarHeight + 64; 2572 DiaDlg.UserLeft := ( Screen.width - DiaDlg.width) div 2;2573 DiaDlg.UserTop := ( Screen.height - DiaDlg.height) div 2;2574 NatStatDlg.UserLeft := Screen.width - NatStatDlg.width - 8;2575 NatStatDlg.UserTop := Screen.height - PanelHeight -2572 DiaDlg.UserLeft := (DpiScreen.width - DiaDlg.width) div 2; 2573 DiaDlg.UserTop := (DpiScreen.height - DiaDlg.height) div 2; 2574 NatStatDlg.UserLeft := DpiScreen.width - NatStatDlg.width - 8; 2575 NatStatDlg.UserTop := DpiScreen.height - PanelHeight - 2576 2576 NatStatDlg.height - 8; 2577 2577 if NatStatDlg.UserTop < 8 then … … 3908 3908 UnitStatDlg.Close; 3909 3909 end; 3910 for i := 0 to Screen.FormCount - 1 do3910 for i := 0 to DpiScreen.FormCount - 1 do 3911 3911 if DpiScreen.Forms[i].Visible and (DpiScreen.Forms[i] is TBufferedDrawDlg) then 3912 3912 DpiScreen.Forms[i].Enabled := false; … … 5102 5102 dx := 0; 5103 5103 dy := 0; 5104 if Mouse.CursorPos.y < Screen.height - PanelHeight then5104 if Mouse.CursorPos.y < DpiScreen.height - PanelHeight then 5105 5105 if Mouse.CursorPos.x = 0 then 5106 5106 dx := -speed // scroll left 5107 else if Mouse.CursorPos.x = Screen.width - 1 then5107 else if Mouse.CursorPos.x = DpiScreen.width - 1 then 5108 5108 dx := speed; // scroll right 5109 5109 if Mouse.CursorPos.y = 0 then 5110 5110 dy := -speed // scroll up 5111 else if (Mouse.CursorPos.y = Screen.height - 1) and5111 else if (Mouse.CursorPos.y = DpiScreen.height - 1) and 5112 5112 (Mouse.CursorPos.x >= TerrainBtn.Left + TerrainBtn.width) and 5113 5113 (Mouse.CursorPos.x < xRightPanel + 10 - 8) then … … 5469 5469 if BattleDlg.Left < 0 then 5470 5470 BattleDlg.Left := 0 5471 else if BattleDlg.Left + BattleDlg.width > Screen.width then5472 BattleDlg.Left := Screen.width - BattleDlg.width;5471 else if BattleDlg.Left + BattleDlg.width > DpiScreen.width then 5472 BattleDlg.Left := DpiScreen.width - BattleDlg.width; 5473 5473 BattleDlg.Top := y - BattleDlg.height div 2; 5474 5474 if BattleDlg.Top < 0 then 5475 5475 BattleDlg.Top := 0 5476 else if BattleDlg.Top + BattleDlg.height > Screen.height then5477 BattleDlg.Top := Screen.height - BattleDlg.height;5476 else if BattleDlg.Top + BattleDlg.height > DpiScreen.height then 5477 BattleDlg.Top := DpiScreen.height - BattleDlg.height; 5478 5478 BattleDlg.IsSuicideQuery := false; 5479 5479 BattleDlg.Show;
Note:
See TracChangeset
for help on using the changeset viewer.