Changeset 219
Legend:
- Unmodified
- Added
- Removed
-
trunk/Back.pas
r194 r219 75 75 end else begin 76 76 WindowState := wsNormal; 77 Width := StartDlg.Width + 16; 78 Height := StartDlg.Height + 16; 79 Left := StartDlg.Left - 8; 80 Top := StartDlg.Top - 8; 77 BoundsRect := Bounds(StartDlg.Left - 8, StartDlg.Top - 8, 78 StartDlg.Width + 16, StartDlg.Height + 16); 81 79 end; 82 80 end; -
trunk/LocalPlayer/Term.pas
r207 r219 287 287 Offscreen: TBitmap; 288 288 OffscreenUser: TForm; 289 procedure CreateParams(var p: TCreateParams); override;290 289 procedure Client(Command, NewPlayer: integer; var Data); 291 290 procedure SetAIName(p: integer; Name: string); … … 3398 3397 3399 3398 { *** main part *** } 3400 3401 procedure TMainScreen.CreateParams(var p: TCreateParams);3402 begin3403 inherited;3404 if FullScreen then begin3405 p.Style := $87000000;3406 BorderStyle := bsNone;3407 BorderIcons := [];3408 end;3409 end;3410 3399 3411 3400 procedure TMainScreen.FormCreate(Sender: TObject); … … 7805 7794 procedure TMainScreen.FormShow(Sender: TObject); 7806 7795 begin 7807 Timer1.Enabled := true; 7808 Left := 0; 7809 Top := 0; 7796 if FullScreen then begin 7797 WindowState := wsMaximized; 7798 BorderStyle := bsNone; 7799 BorderIcons := []; 7800 end else begin 7801 WindowState := wsMaximized; 7802 BorderStyle := bsSizeable; 7803 BorderIcons := [biSystemMenu, biMinimize, biMaximize]; 7804 end; 7805 Timer1.Enabled := True; 7810 7806 end; 7811 7807 -
trunk/Start.pas
r209 r219 694 694 Location := Point((Screen.Width - 800) * 3 div 8, 695 695 Screen.Height - Height - (Screen.Height - 600) div 3); 696 Left := Location.X; 697 Top := Location.Y; 696 BoundsRect := Bounds(Location.X, Location.Y, Width, Height); 698 697 699 698 r0 := CreateRectRgn(0, 0, Width, Height); … … 708 707 DeleteObject(r0); // causes crash with Windows 95 709 708 end else begin 710 Left := (Screen.Width - Width) div 2;711 Top := (Screen.Height - Height) div 2;709 BoundsRect := Bounds((Screen.Width - Width) div 2, 710 (Screen.Height - Height) div 2, Width, Height) 712 711 end; 713 712 end;
Note:
See TracChangeset
for help on using the changeset viewer.