summaryrefslogtreecommitdiff
path: root/src/i_video.c
diff options
context:
space:
mode:
authorSimon Howard2010-12-18 23:55:07 +0000
committerSimon Howard2010-12-18 23:55:07 +0000
commit463bcf013ce355398974953508d232ac88a6b2d6 (patch)
tree8f21093469f64e1d147bf22adc4acf6ad84b0310 /src/i_video.c
parent1ef81eb5f7c336972fe56f15285f389cafdc96f5 (diff)
downloadchocolate-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.c8
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)
{