Changeset 193 for branches/highdpi/LocalPlayer/TechTree.pas
- Timestamp:
- May 7, 2020, 7:05:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/TechTree.pas
r179 r193 183 183 184 184 // fit window to image, center image in window, center window to screen 185 width := min( Screen.width - 40, Image.width + LeftBorder + RightBorder + 2 *185 width := min(DpiScreen.width - 40, Image.width + LeftBorder + RightBorder + 2 * 186 186 BlackBorder); 187 height := min( Screen.height - 40, Image.height + TopBorder + BottomBorder + 2187 height := min(DpiScreen.height - 40, Image.height + TopBorder + BottomBorder + 2 188 188 * BlackBorder); 189 Left := ( Screen.width - width) div 2;190 Top := ( Screen.height - height) div 2;189 Left := (DpiScreen.width - width) div 2; 190 Top := (DpiScreen.height - height) div 2; 191 191 CloseBtn.Left := width - CloseBtn.width - BlackBorder - 8; 192 192 CloseBtn.Top := BlackBorder + 8;
Note:
See TracChangeset
for help on using the changeset viewer.