diff options
author | Simon Howard | 2010-12-18 23:55:07 +0000 |
---|---|---|
committer | Simon Howard | 2010-12-18 23:55:07 +0000 |
commit | 463bcf013ce355398974953508d232ac88a6b2d6 (patch) | |
tree | 8f21093469f64e1d147bf22adc4acf6ad84b0310 /src/i_video.c | |
parent | 1ef81eb5f7c336972fe56f15285f389cafdc96f5 (diff) | |
download | chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.tar.gz chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.tar.bz2 chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.zip |
Add a M_CheckParmWithArgs function, that behaves like M_CheckParm but
also checks that extra options were provided on the command line (thanks
Sander van Dijk).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2223
Diffstat (limited to 'src/i_video.c')
-rw-r--r-- | src/i_video.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/i_video.c b/src/i_video.c index ad4d7f39..55fd21e1 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -1442,7 +1442,7 @@ static void CheckCommandLine(void) // Specify the screen width, in pixels. // - i = M_CheckParm("-width"); + i = M_CheckParmWithArgs("-width", 1); if (i > 0) { @@ -1456,7 +1456,7 @@ static void CheckCommandLine(void) // Specify the screen height, in pixels. // - i = M_CheckParm("-height"); + i = M_CheckParmWithArgs("-height", 1); if (i > 0) { @@ -1470,7 +1470,7 @@ static void CheckCommandLine(void) // Specify the color depth of the screen, in bits per pixel. // - i = M_CheckParm("-bpp"); + i = M_CheckParmWithArgs("-bpp", 1); if (i > 0) { @@ -1497,7 +1497,7 @@ static void CheckCommandLine(void) // Specify the screen mode (when running fullscreen) or the window // dimensions (when running in windowed mode). - i = M_CheckParm("-geometry"); + i = M_CheckParmWithArgs("-geometry", 1); if (i > 0) { |