[quake3-commits] r2051 - trunk/code/q3_ui
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jun 21 15:33:02 EDT 2011
Author: thilo
Date: 2011-06-21 15:33:02 -0400 (Tue, 21 Jun 2011)
New Revision: 2051
Modified:
trunk/code/q3_ui/ui_video.c
Log:
Fix by Laurent Desnogues for my feeble attempt at a fix
Modified: trunk/code/q3_ui/ui_video.c
===================================================================
--- trunk/code/q3_ui/ui_video.c 2011-06-21 13:31:19 UTC (rev 2050)
+++ trunk/code/q3_ui/ui_video.c 2011-06-21 19:33:02 UTC (rev 2051)
@@ -427,10 +427,12 @@
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 );
More information about the quake3-commits
mailing list