From 91fdb1ef6cff44f4d9033c4a2d10a180917b7451 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 1 Nov 2017 15:17:52 +0100 Subject: [PATCH] - rename can_set_display_brightness => display_can_set_brightness Signed-off-by: Thilo Graf --- lib/hardware/coolstream/hardware_caps.cpp | 6 +++--- lib/hardware/coolstream/hardware_caps.h | 2 +- src/gui/vfd_setup.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/hardware/coolstream/hardware_caps.cpp b/lib/hardware/coolstream/hardware_caps.cpp index 8f75c2791..174c87b19 100644 --- a/lib/hardware/coolstream/hardware_caps.cpp +++ b/lib/hardware/coolstream/hardware_caps.cpp @@ -30,7 +30,7 @@ hw_caps_t *get_hwcaps(void) { caps.display_xres = 12; caps.display_yres = 0; caps.display_can_deepstandby = (rev > 7); - caps.can_set_display_brightness = 1; + caps.display_can_set_brightness = 1; caps.can_ar_14_9 = 1; caps.can_ps_14_9 = 1; caps.force_tuner_2G = 0; @@ -67,7 +67,7 @@ hw_caps_t *get_hwcaps(void) { strcpy(caps.boxname, "Trinity V2"); strcpy(caps.boxarch, "Kronos"); } - caps.can_set_display_brightness = 0; + caps.display_can_set_brightness = 0; break; case 12: strcpy(caps.boxname, "Zee2"); @@ -80,7 +80,7 @@ hw_caps_t *get_hwcaps(void) { case 14: strcpy(caps.boxname, "Trinity Duo"); strcpy(caps.boxarch, "Kronos"); - caps.can_set_display_brightness = 0; + caps.display_can_set_brightness = 0; break; default: strcpy(caps.boxname, "UNKNOWN_BOX"); diff --git a/lib/hardware/coolstream/hardware_caps.h b/lib/hardware/coolstream/hardware_caps.h index 181922cce..2ea712045 100644 --- a/lib/hardware/coolstream/hardware_caps.h +++ b/lib/hardware/coolstream/hardware_caps.h @@ -34,7 +34,7 @@ typedef struct hw_caps int display_xres; /* x resolution or chars per line */ int display_yres; int display_can_deepstandby; - int can_set_display_brightness; + int display_can_set_brightness; char boxvendor[64]; char boxname[64]; char boxarch[64]; diff --git a/src/gui/vfd_setup.cpp b/src/gui/vfd_setup.cpp index 11402623c..a22eaded0 100644 --- a/src/gui/vfd_setup.cpp +++ b/src/gui/vfd_setup.cpp @@ -127,7 +127,7 @@ int CVfdSetup::showSetup() vfds->addItem(mf); } - if (g_info.hw_caps->can_set_display_brightness) + if (g_info.hw_caps->display_can_set_brightness) { //vfd brightness menu mf = new CMenuForwarder(LOCALE_LCDMENU_LCDCONTROLER, vfd_enabled, NULL, this, "brightness", CRCInput::RC_green);