From c7aa1aec5328e8e2c5d42f9b34567cc6c4eadc03 Mon Sep 17 00:00:00 2001 From: f1fth_freed0m Date: Mon, 12 May 2008 18:37:10 +0000 Subject: - removed useless for loops in UScreenSing - added cmdline switch "window" for windowmode git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1082 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UCommandLine.pas | 2 ++ Game/Code/Screens/UScreenSing.pas | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Game/Code/Classes/UCommandLine.pas b/Game/Code/Classes/UCommandLine.pas index 03e5c9d3..3c56c606 100644 --- a/Game/Code/Classes/UCommandLine.pas +++ b/Game/Code/Classes/UCommandLine.pas @@ -167,6 +167,8 @@ begin NoLog := True else if (Command = 'fullscreen') then Fullscreen := True + else if (Command = 'window') then + Fullscreen := False else if (Command = 'joypad') then Joypad := True diff --git a/Game/Code/Screens/UScreenSing.pas b/Game/Code/Screens/UScreenSing.pas index 8791accd..1b089eaf 100644 --- a/Game/Code/Screens/UScreenSing.pas +++ b/Game/Code/Screens/UScreenSing.pas @@ -1082,8 +1082,7 @@ begin Text[TextP2RScore].X := Text[TextP2RScore].X + 10*ScreenX;} // end of weird stuff - for S := 1 to 1 do //wtf? - Static[S].Texture.X := Static[S].Texture.X + 10*ScreenX; + Static[1].Texture.X := Static[1].Texture.X + 10*ScreenX; for T := 0 to 1 do Text[T].X := Text[T].X + 10*ScreenX; @@ -1272,8 +1271,7 @@ begin Text[TextP2RScore].X := Text[TextP2RScore].X - 10*ScreenX;} //weird end - for S := 1 to 1 do // wtf? - Static[S].Texture.X := Static[S].Texture.X - 10*ScreenX; + Static[1].Texture.X := Static[1].Texture.X - 10*ScreenX; for T := 0 to 1 do Text[T].X := Text[T].X - 10*ScreenX; -- cgit v1.2.3