Changeset 496 for trunk/LocalPlayer/TechTree.pas
- Timestamp:
- Dec 18, 2023, 10:31:54 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/TechTree.pas
r468 r496 99 99 ClientHeight - BlackBorder, -BlackBorder - xOffset, 100 100 -BlackBorder - yOffset, Paper); 101 if xOffset + Image. width < ClientWidth - 2 * BlackBorder then102 FillRectSeamless(Canvas, BlackBorder + xOffset + Image. width, BlackBorder,101 if xOffset + Image.Width < ClientWidth - 2 * BlackBorder then 102 FillRectSeamless(Canvas, BlackBorder + xOffset + Image.Width, BlackBorder, 103 103 ClientWidth - BlackBorder, ClientHeight - BlackBorder, 104 104 -BlackBorder - xOffset, -BlackBorder - yOffset, Paper); 105 105 X := Max(BlackBorder, BlackBorder + xOffset); 106 W := Min(BlackBorder + xOffset + Image. width, ClientWidth - BlackBorder);106 W := Min(BlackBorder + xOffset + Image.Width, ClientWidth - BlackBorder); 107 107 if yOffset > 0 then 108 108 FillRectSeamless(Canvas, X, BlackBorder, W, BlackBorder + yOffset, 109 109 -BlackBorder - xOffset, -BlackBorder - yOffset, Paper); 110 if yOffset + Image. height < ClientHeight - 2 * BlackBorder then111 FillRectSeamless(Canvas, X, BlackBorder + yOffset + Image. height, W,110 if yOffset + Image.Height < ClientHeight - 2 * BlackBorder then 111 FillRectSeamless(Canvas, X, BlackBorder + yOffset + Image.Height, W, 112 112 ClientHeight - BlackBorder, -BlackBorder - xOffset, 113 113 -BlackBorder - yOffset, Paper); … … 115 115 BitBltCanvas(Canvas, Max(BlackBorder, BlackBorder + xOffset), 116 116 Max(BlackBorder, BlackBorder + yOffset), 117 Min(Image. width, Min(Image.width + xOffset,117 Min(Image.Width, Min(Image.Width + xOffset, 118 118 Min(ClientWidth - 2 * BlackBorder, ClientWidth - 2 * BlackBorder - xOffset)) 119 ), Min(Image. height, Min(Image.height + yOffset,119 ), Min(Image.Height, Min(Image.Height + yOffset, 120 120 Min(ClientHeight - 2 * BlackBorder, ClientHeight - 2 * BlackBorder - 121 121 yOffset))), Image.Canvas, Max(0, -xOffset), … … 177 177 (Screen.Height - NewHeight) div 2, 178 178 NewWidth, NewHeight); 179 CloseBtn.Left := width - CloseBtn.width - BlackBorder - 8;179 CloseBtn.Left := Width - CloseBtn.Width - BlackBorder - 8; 180 180 CloseBtn.Top := BlackBorder + 8; 181 181 xOffset := (ClientWidth - Image.Width + LeftBorder - RightBorder) div 2 - … … 213 213 if xOffset > LeftBorder then 214 214 xOffset := LeftBorder; 215 if xOffset < ClientWidth - 2 * BlackBorder - Image. width - RightBorder then216 xOffset := ClientWidth - 2 * BlackBorder - Image. width - RightBorder;215 if xOffset < ClientWidth - 2 * BlackBorder - Image.Width - RightBorder then 216 xOffset := ClientWidth - 2 * BlackBorder - Image.Width - RightBorder; 217 217 if yOffset > TopBorder then 218 218 yOffset := TopBorder; 219 if yOffset < ClientHeight - 2 * BlackBorder - Image. height - BottomBorder219 if yOffset < ClientHeight - 2 * BlackBorder - Image.Height - BottomBorder 220 220 then 221 yOffset := ClientHeight - 2 * BlackBorder - Image. height - BottomBorder;221 yOffset := ClientHeight - 2 * BlackBorder - Image.Height - BottomBorder; 222 222 223 223 SmartInvalidate;
Note:
See TracChangeset
for help on using the changeset viewer.