diff options
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -310,10 +310,7 @@ void TeletextBrowser::ExecuteAction(eTeletextAction e) { //suspendedReceiving=(!suspendedReceiving); break;*/ case DarkScreen: - if (Display::GetBackgroundColor() == clrBlack) - Display::SetBackgroundColor((tColor)ttSetup.configuredClrBackground); - else - Display::SetBackgroundColor(clrBlack); + ChangeBackground(); break; default: //In osdteletext.c, numbers are thought to be decimal, the setup page @@ -339,6 +336,16 @@ void TeletextBrowser::ExecuteAction(eTeletextAction e) { } } +void TeletextBrowser::ChangeBackground() +{ + if (Display::GetBackgroundColor() == clrBlack) + Display::SetBackgroundColor((tColor)ttSetup.configuredClrBackground); + else if (Display::GetBackgroundColor() == (tColor)ttSetup.configuredClrBackground) + Display::SetBackgroundColor(clrTransparent); + else + Display::SetBackgroundColor(clrBlack); +} + eTeletextAction TeletextBrowser::TranslateKey(eKeys Key) { switch(Key) { case kRed: return (eTeletextAction)ttSetup.mapKeyToAction[ActionKeyRed]; |