mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-03 06:20:57 +00:00
gl_vidsdl.c (VID_Init): If -height is not specified on the command line,
initialize height to width*3/4 which avoids a compiler warning. gl_vidnt.c (VID_Init): Likewise. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@148 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
9f235e0013
commit
c7dc5d6cbf
2 changed files with 4 additions and 0 deletions
|
@ -2179,6 +2179,8 @@ void VID_Init (void)
|
|||
|
||||
if (COM_CheckParm("-height"))
|
||||
height = Q_atoi(com_argv[COM_CheckParm("-height")+1]);
|
||||
else
|
||||
height = width * 3 / 4; // assume 4:3 aspect ratio
|
||||
|
||||
// if they want to force it, add the specified mode to the list
|
||||
if (COM_CheckParm("-force") && (nummodes < MAX_MODE_LIST))
|
||||
|
|
|
@ -1262,6 +1262,8 @@ void VID_Init (void)
|
|||
|
||||
if (COM_CheckParm("-height"))
|
||||
height = Q_atoi(com_argv[COM_CheckParm("-height")+1]);
|
||||
else
|
||||
height = width * 3 / 4; // assume 4:3 aspect ratio
|
||||
|
||||
// if they want to force it, add the specified mode to the list
|
||||
if (COM_CheckParm("-force") && (nummodes < MAX_MODE_LIST))
|
||||
|
|
Loading…
Reference in a new issue