--- a/hedgewars/ArgParsers.inc Mon Dec 17 00:34:49 2012 +0100
+++ b/hedgewars/ArgParsers.inc Mon Dec 17 00:43:52 2012 +0100
@@ -23,7 +23,7 @@
UserPathPrefix:= ParamStr(1);
cScreenWidth:= StrToInt(ParamStr(2));
cScreenHeight:= StrToInt(ParamStr(3));
- cBits:= StrToInt(ParamStr(4));
+ //cBits:= StrToInt(ParamStr(4));
ipcPort:= StrToInt(ParamStr(5));
cFullScreen:= ParamStr(6) = '1';
SetSound(ParamStr(7) = '1');
@@ -156,7 +156,7 @@
{--low-quality} 12 : cReducedQuality:= $FFFFFFFF xor rqLowRes;
{--raw-quality} 13 : cReducedQuality:= getLongIntParameter(arg, paramIndex, parseParameter);
{deprecated options}
- {--depth} 14 : cBits := getLongIntParameter(arg, paramIndex, parseParameter);
+ {--depth} 14 : {do nothing};
{--set-video} 15 : parseClassicParameter(videoArray,3,paramIndex);
{--set-audio} 16 : parseClassicParameter(audioArray,3,paramIndex);
{--set-other} 17 : parseClassicParameter(otherArray,3,paramIndex);
--- a/hedgewars/uStore.pas Mon Dec 17 00:34:49 2012 +0100
+++ b/hedgewars/uStore.pas Mon Dec 17 00:43:52 2012 +0100
@@ -1234,7 +1234,7 @@
s:= SDL_getenv('SDL_VIDEO_CENTERED');
SDL_putenv('SDL_VIDEO_CENTERED=1');
{$ENDIF}
- SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags);
+ SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, 0, flags);
SDLTry(SDLPrimSurface <> nil, true);
{$IFDEF WIN32}SDL_putenv(str2pchar('SDL_VIDEO_CENTERED=' + s));{$ENDIF}
end;
--- a/hedgewars/uVariables.pas Mon Dec 17 00:34:49 2012 +0100
+++ b/hedgewars/uVariables.pas Mon Dec 17 00:43:52 2012 +0100
@@ -34,7 +34,6 @@
cNewScreenWidth : LongInt;
cNewScreenHeight : LongInt;
cScreenResizeDelay : LongWord;
- cBits : LongInt;
ipcPort : Word;
cFullScreen : boolean;
cLocaleFName : shortstring;
@@ -2327,7 +2326,6 @@
cScreenWidth := 1024;
cScreenHeight := 768;
- cBits := 32;
cShowFPS := false;
cAltDamage := true;
cTimerInterval := 8;