mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
fix build / progressbar setup after pu/cc merge
* CProgressBar::PB_MONO is no longer available
* PB color setup is split over two configuration variables
Fix this while still keeping seamless update compatibility.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6a955ecef0
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -392,7 +392,7 @@ const CMenuOptionChooser::keyval OPTIONS_COLORED_EVENTS_OPTIONS[OPTIONS_COLORED_
|
||||
#define PROGRESSBAR_COLOR_OPTION_COUNT 5
|
||||
const CMenuOptionChooser::keyval PROGRESSBAR_COLOR_OPTIONS[PROGRESSBAR_COLOR_OPTION_COUNT] =
|
||||
{
|
||||
{ CProgressBar::PB_MONO, LOCALE_PROGRESSBAR_COLOR_MONO },
|
||||
{ -1, LOCALE_PROGRESSBAR_COLOR_MONO },
|
||||
{ CProgressBar::PB_MATRIX, LOCALE_PROGRESSBAR_COLOR_MATRIX },
|
||||
{ CProgressBar::PB_LINES_V, LOCALE_PROGRESSBAR_COLOR_VERTICAL },
|
||||
{ CProgressBar::PB_LINES_H, LOCALE_PROGRESSBAR_COLOR_HORIZONTAL },
|
||||
@@ -522,12 +522,19 @@ int COsdSetup::showOsdSetup()
|
||||
osd_menu->addItem(mc);
|
||||
|
||||
// color progress bar
|
||||
mc = new CMenuOptionChooser(LOCALE_PROGRESSBAR_COLOR, &g_settings.progressbar_color, PROGRESSBAR_COLOR_OPTIONS, PROGRESSBAR_COLOR_OPTION_COUNT, true);
|
||||
int pb_color = g_settings.progressbar_color ? g_settings.progressbar_design : -1;
|
||||
mc = new CMenuOptionChooser(LOCALE_PROGRESSBAR_COLOR, &pb_color, PROGRESSBAR_COLOR_OPTIONS, PROGRESSBAR_COLOR_OPTION_COUNT, true);
|
||||
mc->setHint("", LOCALE_MENU_HINT_PROGRESSBAR_COLOR);
|
||||
osd_menu->addItem(mc);
|
||||
|
||||
int res = osd_menu->exec(NULL, "");
|
||||
|
||||
if (pb_color == -1)
|
||||
g_settings.progressbar_color = 0;
|
||||
else {
|
||||
g_settings.progressbar_color = 1;
|
||||
g_settings.progressbar_design = pb_color;
|
||||
}
|
||||
delete osd_menu;
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user