mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
videosettings.cpp: use hw_caps->has_button_vformat
Origin commit data
------------------
Branch: ni/coolstream
Commit: cf07ebb3b1
Author: GetAway <get-away@t-online.de>
Date: 2018-12-01 (Sat, 01 Dec 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -33,6 +33,7 @@ hw_caps_t *get_hwcaps(void) {
|
||||
caps.display_can_set_brightness = 1;
|
||||
caps.display_has_statusline = 1;
|
||||
caps.has_button_timer = 0;
|
||||
caps.has_button_vformat = 1;
|
||||
caps.can_ar_14_9 = 1;
|
||||
caps.can_ps_14_9 = 1;
|
||||
caps.force_tuner_2G = 0;
|
||||
|
@@ -37,6 +37,7 @@ typedef struct hw_caps
|
||||
int display_can_set_brightness;
|
||||
int display_has_statusline;
|
||||
int has_button_timer;
|
||||
int has_button_vformat;
|
||||
char boxvendor[64];
|
||||
char boxname[64];
|
||||
char boxarch[64];
|
||||
|
@@ -411,10 +411,11 @@ int CVideoSettings::showVideoSetup()
|
||||
if (VIDEOMENU_VIDEOMODE_OPTIONS[i].key != -1)
|
||||
videomodes.addItem(new CMenuOptionChooser(VIDEOMENU_VIDEOMODE_OPTIONS[i].valname, &g_settings.enabled_video_modes[i], OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, &anotify));
|
||||
|
||||
#if !HAVE_ARM_HARDWARE //TODO: make configurable for other keys on other hardware
|
||||
vs_videomodes_fw = new CMenuForwarder(LOCALE_VIDEOMENU_ENABLED_MODES, true, NULL, &videomodes, NULL, CRCInput::RC_red);
|
||||
vs_videomodes_fw->setHint("", LOCALE_MENU_HINT_VIDEO_MODES);
|
||||
#endif
|
||||
if (g_info.hw_caps->has_button_vformat)
|
||||
{
|
||||
vs_videomodes_fw = new CMenuForwarder(LOCALE_VIDEOMENU_ENABLED_MODES, true, NULL, &videomodes, NULL, CRCInput::RC_red);
|
||||
vs_videomodes_fw->setHint("", LOCALE_MENU_HINT_VIDEO_MODES);
|
||||
}
|
||||
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
automodes.addIntroItems(LOCALE_VIDEOMENU_ENABLED_MODES_AUTO);
|
||||
|
Reference in New Issue
Block a user