mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Fix by Laurent Desnogues for my feeble attempt at a fix
This commit is contained in:
parent
2d1187b287
commit
d9ea902c31
1 changed files with 3 additions and 1 deletions
|
@ -427,11 +427,13 @@ static void GraphicsOptions_GetAspectRatios( void )
|
|||
char str[ sizeof(ratioBuf[0]) ];
|
||||
|
||||
// calculate resolution's aspect ratio
|
||||
x = strchr( resolutions[r], 'x' ) + 1;
|
||||
x = strchr( resolutions[r], 'x' );
|
||||
|
||||
if(!x)
|
||||
continue;
|
||||
|
||||
x++;
|
||||
|
||||
Q_strncpyz( str, resolutions[r], x-resolutions[r] );
|
||||
w = atoi( str );
|
||||
h = atoi( x );
|
||||
|
|
Loading…
Reference in a new issue