mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 19:01:13 +02:00
webtv-setup: move LIVESTREAM_RESOLUTION_OPTIONS to CWebTVResolution code
Origin commit data
------------------
Commit: 9e709ab4d3
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-21 (Fri, 21 Sep 2018)
Origin message was:
------------------
- webtv-setup: move LIVESTREAM_RESOLUTION_OPTIONS to CWebTVResolution code
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 (
|
||||||
@@ -341,6 +329,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