Changeset 327 for trunk/Core.pas


Ignore:
Timestamp:
Jul 16, 2024, 10:58:45 PM (2 months ago)
Author:
chronos
Message:
  • Fixed: Keep full screen info on single place.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Core.pas

    r319 r327  
    7171    GameLoaded: Boolean;
    7272    FormNewTabIndex: Integer;
    73     FullScreen: Boolean;
    7473    GameFilesDir: string;
    7574    procedure LoadRecentExecute(Sender: TObject);
     
    8786    procedure FormClientActions;
    8887    procedure LoadGameSystems;
    89     procedure ToggleFullscreen;
    9088  public
    9189    Game: TGame;
     
    294292procedure TCore.UpdateInterface;
    295293begin
    296   Core.AGameEnd.Enabled := Core.Game.Running;
     294  Core.AGameEnd.Enabled := Game.Running;
     295  Core.AFullscreen.Checked := FormMain.FullScreen;
    297296end;
    298297
     
    306305procedure TCore.AFullscreenExecute(Sender: TObject);
    307306begin
    308   ToggleFullscreen;
     307  FormMain.ToggleFullscreen;
     308  UpdateInterface;
    309309end;
    310310
     
    657657end;
    658658
    659 procedure TCore.ToggleFullscreen;
    660 begin
    661   FullScreen := not FullScreen;
    662   PersistentForm1.Form := FormMain;
    663   PersistentForm1.SetFullScreen(FullScreen);
    664   UpdateInterface;
    665 end;
    666 
    667659procedure TCore.ReopenGameOnInit;
    668660begin
Note: See TracChangeset for help on using the changeset viewer.