# HG changeset patch # User koda # Date 1355701432 -3600 # Node ID edcfb5e432452bf5b1599a9536479253f0a40655 # Parent cdf83bdf7b27e0454de85cfb4b6a2b52a23fd3ed bye bye cBits diff -r cdf83bdf7b27 -r edcfb5e43245 hedgewars/ArgParsers.inc --- 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); diff -r cdf83bdf7b27 -r edcfb5e43245 hedgewars/uStore.pas --- 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; diff -r cdf83bdf7b27 -r edcfb5e43245 hedgewars/uVariables.pas --- 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;