mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Replace color indexes of the text colors by real color values for RenderString()
- If necessary, Correct data types of the color values
This commit is contained in:
@@ -72,11 +72,11 @@
|
||||
//#define LIST_BACKGROUND_COLOR_SELECTED ((CFBWindow::color_t)COL_MENUCONTENT_PLUS_1)
|
||||
#define LIST_BACKGROUND_COLOR_SELECTED ((CFBWindow::color_t)COL_MENUCONTENTSELECTED_PLUS_0)
|
||||
|
||||
#define TITLE_FONT_COLOR COL_MENUHEAD
|
||||
#define HEADER_LIST_FONT_COLOR COL_MENUCONTENT
|
||||
#define LIST_FONT_COLOR COL_MENUCONTENT
|
||||
//#define LIST_FONT_COLOR_SELECTED COL_MENUCONTENT
|
||||
#define LIST_FONT_COLOR_SELECTED COL_MENUCONTENTSELECTED
|
||||
#define TITLE_FONT_COLOR COL_MENUHEAD_TEXT
|
||||
#define HEADER_LIST_FONT_COLOR COL_MENUCONTENT_TEXT
|
||||
#define LIST_FONT_COLOR COL_MENUCONTENT_TEXT
|
||||
//#define LIST_FONT_COLOR_SELECTED COL_MENUCONTENT_TEXT
|
||||
#define LIST_FONT_COLOR_SELECTED COL_MENUCONTENTSELECTED_TEXT
|
||||
|
||||
#define FONT_LIST g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO2]
|
||||
#define FONT_HEADER_LIST g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO1]
|
||||
@@ -418,7 +418,7 @@ void CListFrame::refreshList(void)
|
||||
line < m_nNrOfLines && line < m_nCurrentLine + m_nLinesPerPage;
|
||||
line++)
|
||||
{
|
||||
int color = LIST_FONT_COLOR;
|
||||
uint32_t color = LIST_FONT_COLOR;
|
||||
// draw line
|
||||
if(line == m_nSelectedLine && m_showSelection == true)
|
||||
{
|
||||
@@ -461,7 +461,7 @@ void CListFrame::refreshLine(int line)
|
||||
if((line < m_nCurrentLine) && (line > m_nCurrentLine + m_nLinesPerPage))
|
||||
return;
|
||||
|
||||
uint8_t color;
|
||||
uint32_t color;
|
||||
int rel_line = line - m_nCurrentLine;
|
||||
int y = m_cFrameListRel.iY + TEXT_BORDER_WIDTH + (rel_line*m_nFontListHeight);
|
||||
|
||||
|
Reference in New Issue
Block a user