mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- webtv-setup: move LIVESTREAM_RESOLUTION_OPTIONS to CWebTVResolution code
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user