Changeset 265 for branches/highdpi/LocalPlayer/Select.pas
- Timestamp:
- Jun 25, 2020, 10:24:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Select.pas
r252 r265 684 684 kTribe, kMission: // center text 685 685 if Lines[0] > MaxLines then 686 x := (InnerWidth - GetSystemMetrics(SM_CXVSCROLL)) div 2 -686 x := (InnerWidth - DpiGetSystemMetrics(SM_CXVSCROLL)) div 2 - 687 687 BiColorTextWidth(ca, s) div 2 688 688 else … … 1575 1575 kTribe: 1576 1576 if Lines[0] > MaxLines then 1577 InnerWidth := 280 + GetSystemMetrics(SM_CXVSCROLL)1577 InnerWidth := 280 + DpiGetSystemMetrics(SM_CXVSCROLL) 1578 1578 else 1579 1579 InnerWidth := 280; … … 1581 1581 begin 1582 1582 InnerWidth := 104 - 33 + 15 + 8 + TechNameSpace + 24 * nColumn + 1583 GetSystemMetrics(SM_CXVSCROLL);1583 DpiGetSystemMetrics(SM_CXVSCROLL); 1584 1584 if InnerWidth + 2 * SideFrame > 640 then 1585 1585 begin … … 1590 1590 kAdvance, kFarAdvance: 1591 1591 InnerWidth := 104 - 33 + 15 + 8 + TechNameSpace + 24 + 1592 GetSystemMetrics(SM_CXVSCROLL);1592 DpiGetSystemMetrics(SM_CXVSCROLL); 1593 1593 kChooseTech, kChooseETech, kStealTech: 1594 1594 InnerWidth := 104 - 33 + 15 + 8 + TechNameSpace + 1595 GetSystemMetrics(SM_CXVSCROLL);1595 DpiGetSystemMetrics(SM_CXVSCROLL); 1596 1596 else 1597 1597 InnerWidth := 363; … … 1604 1604 { TODO: 1605 1605 SetWindowPos(sb.ScrollBar.Handle, 0, SideFrame + InnerWidth - GetSystemMetrics(SM_CXVSCROLL), 1606 TitleHeight, GetSystemMetrics(SM_CXVSCROLL), LineDistance * DispLines + 48,1606 TitleHeight, DpiGetSystemMetrics(SM_CXVSCROLL), LineDistance * DispLines + 48, 1607 1607 SWP_NOZORDER or SWP_NOREDRAW); 1608 1608 }
Note:
See TracChangeset
for help on using the changeset viewer.