mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
system/setting_helpers.cpp: add static CColorSetupNotifier::setPalette(),
to call it direct
Origin commit data
------------------
Branch: ni/coolstream
Commit: a1bd6d404b
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-11-02 (Fri, 02 Nov 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -129,10 +129,9 @@ bool CTouchFileNotifier::changeNotify(const neutrino_locale_t, void * data)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CColorSetupNotifier::changeNotify(const neutrino_locale_t, void *)
|
||||
void CColorSetupNotifier::setPalette()
|
||||
{
|
||||
CFrameBuffer *frameBuffer = CFrameBuffer::getInstance();
|
||||
// unsigned char r,g,b;
|
||||
//setting colors-..
|
||||
frameBuffer->paletteGenFade(COL_MENUHEAD,
|
||||
convertSetupColor2RGB(g_settings.menu_Head_red, g_settings.menu_Head_green, g_settings.menu_Head_blue),
|
||||
@@ -165,13 +164,6 @@ bool CColorSetupNotifier::changeNotify(const neutrino_locale_t, void *)
|
||||
convertSetupColor2RGB(g_settings.infobar_Text_red, g_settings.infobar_Text_green, g_settings.infobar_Text_blue),
|
||||
8, convertSetupAlpha2Alpha(g_settings.infobar_alpha) );
|
||||
|
||||
/* frameBuffer->paletteSetColor( COL_INFOBAR_SHADOW,
|
||||
convertSetupColor2RGB(
|
||||
int(g_settings.infobar_red*0.4),
|
||||
int(g_settings.infobar_green*0.4),
|
||||
int(g_settings.infobar_blue*0.4)),
|
||||
g_settings.infobar_alpha);
|
||||
*/
|
||||
frameBuffer->paletteGenFade(COL_INFOBAR_SHADOW,
|
||||
convertSetupColor2RGB(int(g_settings.infobar_red*0.4), int(g_settings.infobar_green*0.4), int(g_settings.infobar_blue*0.4)),
|
||||
convertSetupColor2RGB(g_settings.infobar_Text_red, g_settings.infobar_Text_green, g_settings.infobar_Text_blue),
|
||||
@@ -189,6 +181,11 @@ bool CColorSetupNotifier::changeNotify(const neutrino_locale_t, void *)
|
||||
8, convertSetupAlpha2Alpha(g_settings.infobar_alpha) );
|
||||
|
||||
frameBuffer->paletteSet();
|
||||
}
|
||||
|
||||
bool CColorSetupNotifier::changeNotify(const neutrino_locale_t, void *)
|
||||
{
|
||||
setPalette();
|
||||
#if 0
|
||||
/* recalculate volumebar */
|
||||
CVolume::getInstance()->Init();
|
||||
@@ -486,8 +483,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
|
||||
//CNeutrinoApp::getInstance()->loadColors(NEUTRINO_SETTINGS_FILE);
|
||||
CNeutrinoApp::getInstance()->SetupFonts();
|
||||
CNeutrinoApp::getInstance()->SetupTiming();
|
||||
CColorSetupNotifier colorSetupNotifier;
|
||||
colorSetupNotifier.changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||
CColorSetupNotifier::setPalette();
|
||||
CVFD::getInstance()->setlcdparameter();
|
||||
CFrameBuffer::getInstance()->Clear();
|
||||
}
|
||||
|
@@ -88,6 +88,7 @@ class CColorSetupNotifier : public CChangeObserver
|
||||
{
|
||||
public:
|
||||
bool changeNotify(const neutrino_locale_t, void *);
|
||||
static void setPalette();
|
||||
};
|
||||
|
||||
class CAudioSetupNotifier : public CChangeObserver
|
||||
|
Reference in New Issue
Block a user