videosettings: simplify code for different platforms

make the videomode selection code more dynamic, the future
goal is to get rid of the #ifdefs and select available modes
at runtime
This commit is contained in:
Stefan Seyfried
2012-11-03 23:07:21 +01:00
parent badf556cf6
commit 684e9ce0f4
2 changed files with 54 additions and 28 deletions

View File

@@ -44,21 +44,7 @@
#include <string>
#if HAVE_COOL_HARDWARE
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 12
#endif
#if HAVE_TRIPLEDRAGON
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 3
#endif
#if HAVE_SPARK_HARDWARE
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 9
#endif
#if HAVE_AZBOX_HARDWARE
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 9
#endif
#ifndef VIDEOMENU_VIDEOMODE_OPTION_COUNT
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 1
#endif
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 13
struct SNeutrinoSettings
{