- webtv-setup: move LIVESTREAM_RESOLUTION_OPTIONS to CWebTVResolution code

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-09-21 21:41:34 +02:00
committed by Thilo Graf
parent ac90cb5f17
commit c1c4389360

View File

@@ -50,17 +50,6 @@ CWebTVSetup::CWebTVSetup()
changed = false; changed = false;
} }
const CMenuOptionChooser::keyval_ext LIVESTREAM_RESOLUTION_OPTIONS[] =
{
{ 1920, NONEXISTANT_LOCALE, "1920x1080" },
{ 1280, NONEXISTANT_LOCALE, "1280x720" },
{ 854, NONEXISTANT_LOCALE, "854x480" },
{ 640, NONEXISTANT_LOCALE, "640x360" },
{ 426, NONEXISTANT_LOCALE, "426x240" },
{ 128, NONEXISTANT_LOCALE, "128x72" }
};
#define LIVESTREAM_RESOLUTION_OPTION_COUNT (sizeof(LIVESTREAM_RESOLUTION_OPTIONS)/sizeof(CMenuOptionChooser::keyval_ext))
#define CWebTVSetupFooterButtonCount 4 #define CWebTVSetupFooterButtonCount 4
static const struct button_label CWebTVSetupFooterButtons[CWebTVSetupFooterButtonCount] = static const struct button_label CWebTVSetupFooterButtons[CWebTVSetupFooterButtonCount] =
{ {
@@ -322,7 +311,6 @@ void CWebTVSetup::webtv_xml_auto()
} }
} }
bool CWebTVSetup::webtv_xml_autodir(std::string directory) bool CWebTVSetup::webtv_xml_autodir(std::string directory)
{ {
if ( if (
@@ -350,6 +338,17 @@ CWebTVResolution::CWebTVResolution()
width = 40; width = 40;
} }
const CMenuOptionChooser::keyval_ext LIVESTREAM_RESOLUTION_OPTIONS[] =
{
{ 1920, NONEXISTANT_LOCALE, "1920x1080" },
{ 1280, NONEXISTANT_LOCALE, "1280x720" },
{ 854, NONEXISTANT_LOCALE, "854x480" },
{ 640, NONEXISTANT_LOCALE, "640x360" },
{ 426, NONEXISTANT_LOCALE, "426x240" },
{ 128, NONEXISTANT_LOCALE, "128x72" }
};
#define LIVESTREAM_RESOLUTION_OPTION_COUNT (sizeof(LIVESTREAM_RESOLUTION_OPTIONS)/sizeof(CMenuOptionChooser::keyval_ext))
int CWebTVResolution::exec(CMenuTarget *parent, const std::string & /*actionKey*/) int CWebTVResolution::exec(CMenuTarget *parent, const std::string & /*actionKey*/)
{ {
if (parent) if (parent)