vfd-setup: use new display_can_deepstandby member from libstb-hal

Origin commit data
------------------
Branch: ni/coolstream
Commit: 491ca15848
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-01 (Wed, 01 Nov 2017)

Origin message was:
------------------
- vfd-setup: use new display_can_deepstandby member from libstb-hal

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-01 15:10:38 +01:00
parent 19ebded30d
commit 0184232110
2 changed files with 4 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ hw_caps_t *get_hwcaps(void) {
caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.display_xres = 12;
caps.display_yres = 0;
caps.display_can_deepstandby = (rev > 7);
caps.can_set_display_brightness = 1;
caps.can_ar_14_9 = 1;
caps.can_ps_14_9 = 1;

View File

@@ -230,12 +230,14 @@ int CVfdSetup::showBrightnessSetup()
nc->setActivateObserver(this);
mn_widget->addItem(nc);
if(cs_get_revision() > 7) {
if (g_info.hw_caps->display_can_deepstandby)
{
nc = new CMenuOptionNumberChooser(LOCALE_LCDCONTROLER_BRIGHTNESSDEEPSTANDBY, &brightnessdeepstandby, true, 0, 15, this, CRCInput::RC_nokey, NULL, 0, 0, NONEXISTANT_LOCALE, true);
nc->setHint("", LOCALE_MENU_HINT_VFD_BRIGHTNESSDEEPSTANDBY);
nc->setActivateObserver(this);
mn_widget->addItem(nc);
}
nc = new CMenuOptionNumberChooser(LOCALE_LCDMENU_DIM_BRIGHTNESS, &g_settings.lcd_setting_dim_brightness, vfd_enabled, -1, 15, NULL, CRCInput::RC_nokey, NULL, 0, -1, LOCALE_OPTIONS_OFF, true);
nc->setHint("", LOCALE_MENU_HINT_VFD_BRIGHTNESSDIM);
nc->setActivateObserver(this);