Changeset 673 for trunk/LocalPlayer/Draft.pas
- Timestamp:
- Jul 25, 2025, 5:55:22 PM (27 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Draft.pas
r622 r673 234 234 UnshareBitmap(Back); 235 235 236 ClientHeight := Template.Height - Cut;237 if ClientHeight > MainTexture.Height then236 Height := Template.Height - Cut; 237 if Height > MainTexture.Height then 238 238 // assemble background from 2 texture tiles 239 239 begin 240 BitBltBitmap(Back, 0, 0, ClientWidth, 64,241 MainTexture.Image, (MainTexture.Width - ClientWidth) div 2,240 BitBltBitmap(Back, 0, 0, Width, 64, 241 MainTexture.Image, (MainTexture.Width - Width) div 2, 242 242 MainTexture.Height - 64); 243 BitBltBitmap(Back, 0, 64, ClientWidth, ClientHeight - 64,244 MainTexture.Image, (MainTexture.Width - ClientWidth) div 2,243 BitBltBitmap(Back, 0, 64, Width, Height - 64, 244 MainTexture.Image, (MainTexture.Width - Width) div 2, 245 245 0); 246 246 end 247 247 else 248 BitBltBitmap(Back, 0, 0, ClientWidth, ClientHeight,249 MainTexture.Image, (MainTexture.Width - ClientWidth) div 2,250 (MainTexture.Height - ClientHeight) div 2);248 BitBltBitmap(Back, 0, 0, Width, Height, 249 MainTexture.Image, (MainTexture.Width - Width) div 2, 250 (MainTexture.Height - Height) div 2); 251 251 ImageOp_B(Back, Template, 0, 0, 0, 0, Template.Width, 64); 252 252 ImageOp_B(Back, Template, 0, 64, 0, 64 + Cut, Template.Width, 253 253 Template.Height - 64 - Cut); 254 254 255 BitBltBitmap(Offscreen, 0, 0, ClientWidth, ClientHeight, Back, 0, 0);255 BitBltBitmap(Offscreen, 0, 0, Width, Height, Back, 0, 0); 256 256 257 257 Offscreen.Canvas.Font.Assign(UniFont[ftCaption]); … … 400 400 pix div 10 * 49 + 1); 401 401 end; 402 MarkUsedOffscreen( ClientWidth, ClientHeight);402 MarkUsedOffscreen(Width, Height); 403 403 end; 404 404 … … 525 525 begin 526 526 I := (Y - yFeature) div LinePitch; 527 if (X >= xFeature - 21) and (X < ClientWidth) and (ssShift in Shift) then527 if (X >= xFeature - 21) and (X < Width) and (ssShift in Shift) then 528 528 MainScreen.HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkFeature, Code[I]) 529 529 else if not (Code[I] in AutoFeature) then
Note:
See TracChangeset
for help on using the changeset viewer.