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


Origin commit data
------------------
Branch: ni/coolstream
Commit: 684e9ce0f4
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-11-03 (Sat, 03 Nov 2012)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-11-03 23:07:21 +01:00
parent eb2dce221a
commit e58f1616ba
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
{