From 73f96e1df6c4cca8ee416157d1065cc49a0063cd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 21 May 2007 17:02:43 +0000 Subject: [PATCH] SVN r533 (trunk) --- src/m_options.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/m_options.cpp b/src/m_options.cpp index c9decfefa..01f2d398a 100644 --- a/src/m_options.cpp +++ b/src/m_options.cpp @@ -1225,26 +1225,24 @@ void M_OptInit (void) void M_InitVideoModesMenu () { - //int dummy1, dummy2; - //size_t currval = 0; - //char name[24]; + int dummy1, dummy2; + size_t currval = 0; M_RefreshModesList(); - /* - for (unsigned int i = 1; i < 32 && currval < countof(Depths); i++) + for (unsigned int i = 1; i <= 32 && currval < countof(Depths); i++) { Video->StartModeIterator (i, screen->IsFullscreen()); if (Video->NextMode (&dummy1, &dummy2, NULL)) { + /* Depths[currval].value = currval; sprintf (name, "%d bit", i); Depths[currval].name = copystring (name); - BitTranslate[currval] = i; - currval++; + */ + BitTranslate[currval++] = i; } } - */ //ModesItems[VM_DEPTHITEM].b.min = (float)currval;