mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
-fix osd
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@804 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -152,15 +152,7 @@ int CScreenSetup::exec(CMenuTarget* parent, const std::string &)
|
|||||||
frameBuffer->paintBoxRel(x_box, y_box + BoxHeight, BoxWidth, BoxHeight,
|
frameBuffer->paintBoxRel(x_box, y_box + BoxHeight, BoxWidth, BoxHeight,
|
||||||
(selected ==1 )?COL_MENUCONTENTSELECTED_PLUS_0:COL_MENUCONTENT_PLUS_0);
|
(selected ==1 )?COL_MENUCONTENTSELECTED_PLUS_0:COL_MENUCONTENT_PLUS_0);
|
||||||
|
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x_box + 30, y_box + BoxHeight, BoxWidth,
|
paintIcons(selected);
|
||||||
g_Locale->getText(LOCALE_SCREENSETUP_UPPERLEFT),
|
|
||||||
(selected == 0)?COL_MENUCONTENTSELECTED:COL_MENUCONTENT, 0, true);
|
|
||||||
|
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x_box + 30, y_box + BoxHeight * 2, BoxWidth,
|
|
||||||
g_Locale->getText(LOCALE_SCREENSETUP_LOWERRIGHT),
|
|
||||||
(selected == 1)?COL_MENUCONTENTSELECTED:COL_MENUCONTENT, 0, true);
|
|
||||||
|
|
||||||
paintIcons();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CRCInput::RC_up:
|
case CRCInput::RC_up:
|
||||||
@@ -258,18 +250,18 @@ void CScreenSetup::unpaintBorder(int pselected)
|
|||||||
frameBuffer->paintBoxRel(cx, cy, 96, 96, make16color(0xA0A0A0));
|
frameBuffer->paintBoxRel(cx, cy, 96, 96, make16color(0xA0A0A0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CScreenSetup::paintIcons()
|
void CScreenSetup::paintIcons(int pselected)
|
||||||
{
|
{
|
||||||
int icol_w, icol_h;
|
int icol_w = 0, icol_h = 0;
|
||||||
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_RED, &icol_w, &icol_h);
|
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_RED, &icol_w, &icol_h);
|
||||||
|
|
||||||
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_RED, x_box + 5, y_box, BoxHeight);
|
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_RED, x_box + 5, y_box, BoxHeight);
|
||||||
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_GREEN, x_box + 5, y_box+BoxHeight, BoxHeight);
|
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_GREEN, x_box + 5, y_box+BoxHeight, BoxHeight);
|
||||||
|
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x_box + icol_w + 10, y_box + BoxHeight, BoxWidth,
|
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x_box + icol_w + 10, y_box + BoxHeight, BoxWidth,
|
||||||
g_Locale->getText(LOCALE_SCREENSETUP_UPPERLEFT ), COL_MENUCONTENTSELECTED , 0, true); // UTF-8
|
g_Locale->getText(LOCALE_SCREENSETUP_UPPERLEFT ), (pselected == 0) ? COL_MENUCONTENTSELECTED:COL_MENUCONTENT , 0, true); // UTF-8
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x_box + icol_w + 10, y_box + BoxHeight * 2, BoxWidth,
|
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x_box + icol_w + 10, y_box + BoxHeight * 2, BoxWidth,
|
||||||
g_Locale->getText(LOCALE_SCREENSETUP_LOWERRIGHT), COL_MENUCONTENT, 0, true); // UTF-8
|
g_Locale->getText(LOCALE_SCREENSETUP_LOWERRIGHT), (pselected == 1) ? COL_MENUCONTENTSELECTED:COL_MENUCONTENT, 0, true); // UTF-8
|
||||||
}
|
}
|
||||||
|
|
||||||
void CScreenSetup::paintBorderUL()
|
void CScreenSetup::paintBorderUL()
|
||||||
@@ -331,14 +323,7 @@ void CScreenSetup::paint()
|
|||||||
frameBuffer->paintBoxRel(x_box, y_box, BoxWidth, BoxHeight, COL_MENUCONTENTSELECTED_PLUS_0); //upper selected box
|
frameBuffer->paintBoxRel(x_box, y_box, BoxWidth, BoxHeight, COL_MENUCONTENTSELECTED_PLUS_0); //upper selected box
|
||||||
frameBuffer->paintBoxRel(x_box, y_box + BoxHeight, BoxWidth, BoxHeight, COL_MENUCONTENT_PLUS_0); //lower selected box
|
frameBuffer->paintBoxRel(x_box, y_box + BoxHeight, BoxWidth, BoxHeight, COL_MENUCONTENT_PLUS_0); //lower selected box
|
||||||
|
|
||||||
#if 0
|
paintIcons(0);
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x_box + 30, y_box + BoxHeight, BoxWidth,
|
|
||||||
g_Locale->getText(LOCALE_SCREENSETUP_UPPERLEFT ), COL_MENUCONTENTSELECTED , 0, true); // UTF-8
|
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x_box + 30, y_box + BoxHeight * 2, BoxWidth,
|
|
||||||
g_Locale->getText(LOCALE_SCREENSETUP_LOWERRIGHT), COL_MENUCONTENT, 0, true); // UTF-8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
paintIcons();
|
|
||||||
paintBorderUL();
|
paintBorderUL();
|
||||||
paintBorderLR();
|
paintBorderLR();
|
||||||
paintCoords();
|
paintCoords();
|
||||||
|
@@ -58,7 +58,7 @@ class CScreenSetup : public CMenuTarget
|
|||||||
void paintCoords();
|
void paintCoords();
|
||||||
void paintBorder(int selected);
|
void paintBorder(int selected);
|
||||||
void unpaintBorder(int selected);
|
void unpaintBorder(int selected);
|
||||||
void paintIcons();
|
void paintIcons(int pselected);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CScreenSetup();
|
CScreenSetup();
|
||||||
|
Reference in New Issue
Block a user