Changeset 327 for trunk/Core.pas
- Timestamp:
- Jul 16, 2024, 10:58:45 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r319 r327 71 71 GameLoaded: Boolean; 72 72 FormNewTabIndex: Integer; 73 FullScreen: Boolean;74 73 GameFilesDir: string; 75 74 procedure LoadRecentExecute(Sender: TObject); … … 87 86 procedure FormClientActions; 88 87 procedure LoadGameSystems; 89 procedure ToggleFullscreen;90 88 public 91 89 Game: TGame; … … 294 292 procedure TCore.UpdateInterface; 295 293 begin 296 Core.AGameEnd.Enabled := Core.Game.Running; 294 Core.AGameEnd.Enabled := Game.Running; 295 Core.AFullscreen.Checked := FormMain.FullScreen; 297 296 end; 298 297 … … 306 305 procedure TCore.AFullscreenExecute(Sender: TObject); 307 306 begin 308 ToggleFullscreen; 307 FormMain.ToggleFullscreen; 308 UpdateInterface; 309 309 end; 310 310 … … 657 657 end; 658 658 659 procedure TCore.ToggleFullscreen;660 begin661 FullScreen := not FullScreen;662 PersistentForm1.Form := FormMain;663 PersistentForm1.SetFullScreen(FullScreen);664 UpdateInterface;665 end;666 667 659 procedure TCore.ReopenGameOnInit; 668 660 begin
Note:
See TracChangeset
for help on using the changeset viewer.