From a4705c84047baee72f23db8709a686e8a663a843 Mon Sep 17 00:00:00 2001 From: Michael Labbe Date: Wed, 2 Mar 2016 12:49:28 -0800 Subject: [PATCH] vid_listmodes crash fix --- src/posix/sdl/hardware.cpp | 2 +- src/win32/hardware.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posix/sdl/hardware.cpp b/src/posix/sdl/hardware.cpp index 213ca044d..b0664319a 100644 --- a/src/posix/sdl/hardware.cpp +++ b/src/posix/sdl/hardware.cpp @@ -308,7 +308,7 @@ CUSTOM_CVAR (Float, vid_winscale, 1.f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) CCMD (vid_listmodes) { - static const char *ratios[6] = { "", " - 16:9", " - 16:10", "", " - 5:4", " - 21:9" }; + static const char *ratios[6] = { "", " - 16:9", " - 16:10", "", " - 5:4", "", " - 21:9" }; int width, height, bits; bool letterbox; diff --git a/src/win32/hardware.cpp b/src/win32/hardware.cpp index cb4250b60..8cc770556 100644 --- a/src/win32/hardware.cpp +++ b/src/win32/hardware.cpp @@ -338,7 +338,7 @@ CUSTOM_CVAR (Float, vid_winscale, 1.f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) CCMD (vid_listmodes) { - static const char *ratios[6] = { "", " - 16:9", " - 16:10", " - 17:10", " - 5:4", " - 21:9" }; + static const char *ratios[7] = { "", " - 16:9", " - 16:10", " - 17:10", " - 5:4", " - 17:10", " - 21:9" }; int width, height, bits; bool letterbox;