Changeset 673
- Timestamp:
- Jul 25, 2025, 5:55:22 PM (18 hours ago)
- Location:
- trunk
- Files:
-
- 4 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 -
trunk/Packages/DpiControls/Dpi.StdCtrls.pas
r592 r673 147 147 constructor Create(AOwner: TComponent); override; 148 148 destructor Destroy; override; 149 procedure MakeCurrentVisible; 149 150 property ItemIndex: Integer read GetItemIndex write SetItemIndex; 150 151 property Items: TStrings read GetItems write SetItems; … … 645 646 end; 646 647 648 procedure TListBox.MakeCurrentVisible; 649 begin 650 GetNativeListBox.MakeCurrentVisible; 651 end; 652 647 653 648 654 initialization -
trunk/Start.lfm
r568 r673 15 15 Font.Name = 'MS Sans Serif' 16 16 FormStyle = fsStayOnTop 17 OnActivate = FormActivate 17 18 OnClose = FormClose 18 19 OnCreate = FormCreate -
trunk/Start.pas
r667 r673 59 59 AutoEnemyDownBtn: TButtonC; 60 60 ReplayBtn: TButtonB; 61 procedure FormActivate(Sender: TObject); 61 62 procedure ListKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); 62 63 procedure ListKeyPress(Sender: TObject; var Key: Char); … … 1101 1102 if Key = DelKey then DeleteBtnClick(Sender) 1102 1103 else FormKeyDown(Sender, Key, Shift); 1104 end; 1105 1106 procedure TStartDlg.FormActivate(Sender: TObject); 1107 begin 1108 if List.Count > 0 then begin 1109 List.MakeCurrentVisible; 1110 end; 1103 1111 end; 1104 1112
Note:
See TracChangeset
for help on using the changeset viewer.