aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-26 13:15:03 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-26 13:15:03 +0000
commit17058a11ccd8e419dbb2ec370302128f2265fd1c (patch)
tree00b9d8257e230186a1d1153a9349a7c7517c8988
parenta265788184832a725213c0fc87372c7df42146d1 (diff)
downloadusdx-17058a11ccd8e419dbb2ec370302128f2265fd1c.tar.gz
usdx-17058a11ccd8e419dbb2ec370302128f2265fd1c.tar.xz
usdx-17058a11ccd8e419dbb2ec370302128f2265fd1c.zip
tidy up from my previous commit
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@889 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UMain.pas32
1 files changed, 16 insertions, 16 deletions
diff --git a/Game/Code/Classes/UMain.pas b/Game/Code/Classes/UMain.pas
index 12cd783c..21e17393 100644
--- a/Game/Code/Classes/UMain.pas
+++ b/Game/Code/Classes/UMain.pas
@@ -457,25 +457,25 @@ Begin
if (Event.key.keysym.sym = SDLK_KP_ENTER) then
Event.key.keysym.sym := SDLK_RETURN;
- if (Event.key.keysym.sym = SDLK_F11 ) (*OR
- (Event.key.keysym.sym = KMOD_ALT and SDLK_RETURN )*)then // toggle full screen
- begin
- writeln( 'Toggle FullScreen' );
+ if (Event.key.keysym.sym = SDLK_F11 ) OR
+ (Event.key.keysym.sym = KMOD_ALT and SDLK_RETURN ) then // toggle full screen
+ begin
Ini.FullScreen := integer( not boolean( Ini.FullScreen ) );
- if boolean( Ini.FullScreen ) then
- begin
- SDL_SetVideoMode(ScreenW, ScreenH, (Ini.Depth+1) * 16, SDL_OPENGL or SDL_FULLSCREEN);
- SDL_ShowCursor(0);
- end
- else
- begin
- SDL_SetVideoMode(ScreenW, ScreenH, (Ini.Depth+1) * 16, SDL_OPENGL or SDL_RESIZABLE);
- SDL_ShowCursor(1);
- end;
+ if boolean( Ini.FullScreen ) then
+ begin
+ SDL_SetVideoMode(ScreenW, ScreenH, (Ini.Depth+1) * 16, SDL_OPENGL or SDL_FULLSCREEN);
+ SDL_ShowCursor(0);
+ end
+ else
+ begin
+ SDL_SetVideoMode(ScreenW, ScreenH, (Ini.Depth+1) * 16, SDL_OPENGL or SDL_RESIZABLE);
+ SDL_ShowCursor(1);
+ end;
- glViewPort(0, 0, 1600, 1200);
- end;
+ glViewPort(0, 0, ScreenW, ScreenH);
+ end
+ else
//ScreenShot hack. If Print is pressed-> Make screenshot and Save to Screenshots Path
if (Event.key.keysym.sym = SDLK_SYSREQ) or (Event.key.keysym.sym = SDLK_PRINT) then