fullscreen toggle

This commit is contained in:
April Ayres-Griffiths 2019-04-14 15:48:02 +10:00
parent 5c52a1d6e6
commit 6e8807ccbb
8 changed files with 27 additions and 11 deletions

View File

@ -1,7 +1,7 @@
object GUIForm: TGUIForm
Left = 228
Left = 2087
Height = 668
Top = 132
Top = 207
Width = 1014
AlphaBlendValue = 128
Caption = 'microM8 GUI'

View File

@ -2424,7 +2424,7 @@ end;
procedure TGUIForm.btnHideClick(Sender: TObject);
begin
pnlMemory.Visible := false;
ReposWindow;
WaitRepos.Enabled := true;
end;
procedure TGUIForm.btnReadClick(Sender: TObject);
@ -2798,8 +2798,16 @@ end;
procedure TGUIForm.MenuItem14Click(Sender: TObject);
begin
{ do fullscreen here }
UpdateConfig('video/current.fullscreen', '1', false);
isFS := true;
case GetConfig( 'video/current.fullscreen' ) of
'0': begin
UpdateConfig('video/current.fullscreen', '1', false);
isFS := true;
end;
'1': begin:
UpdateConfig('video/current.fullscreen', '0', false);
isFS := false;
end;
end;
end;
procedure TGUIForm.MenuItem15Click(Sender: TObject);

View File

@ -1,7 +1,7 @@
object GUIForm: TGUIForm
Left = 228
Left = 2087
Height = 668
Top = 132
Top = 207
Width = 1014
AlphaBlendValue = 128
Caption = 'microM8 GUI'

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +1,7 @@
object GUIForm: TGUIForm
Left = 228
Left = 2087
Height = 668
Top = 132
Top = 207
Width = 1014
AlphaBlendValue = 128
Caption = 'microM8 GUI'

View File

@ -2798,8 +2798,16 @@ end;
procedure TGUIForm.MenuItem14Click(Sender: TObject);
begin
{ do fullscreen here }
UpdateConfig('video/current.fullscreen', '1', false);
isFS := true;
case GetConfig( 'video/current.fullscreen' ) of
'0': begin
UpdateConfig('video/current.fullscreen', '1', false);
isFS := true;
end;
'1': begin
UpdateConfig('video/current.fullscreen', '0', false);
isFS := false;
end;
end;
end;
procedure TGUIForm.MenuItem15Click(Sender: TObject);