From d9ea902c31ff5559ea0aa32b3f6dec994c1e35bd Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Tue, 21 Jun 2011 19:33:02 +0000 Subject: [PATCH] Fix by Laurent Desnogues for my feeble attempt at a fix --- code/q3_ui/ui_video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/q3_ui/ui_video.c b/code/q3_ui/ui_video.c index b1048de2..6b00a33e 100644 --- a/code/q3_ui/ui_video.c +++ b/code/q3_ui/ui_video.c @@ -427,10 +427,12 @@ 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 );