mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
pick psisetup from https://github.com/maxwiesel/neutrino-max
Origin commit data
------------------
Commit: b79c37da51
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-07-27 (Mon, 27 Jul 2020)
Origin message was:
------------------
- pick psisetup from https://github.com/maxwiesel/neutrino-max
This commit is contained in:
@@ -47,6 +47,9 @@
|
||||
#include <gui/widget/msgbox.h>
|
||||
#include <gui/osd_setup.h>
|
||||
#include <gui/osd_helpers.h>
|
||||
#if HAVE_ARM_HARDWARE
|
||||
#include <gui/psisetup.h>
|
||||
#endif
|
||||
|
||||
#include <driver/display.h>
|
||||
#include <driver/screen_max.h>
|
||||
@@ -530,7 +533,7 @@ int CVideoSettings::showVideoSetup()
|
||||
if (vs_videomodes_fw != NULL)
|
||||
videosetup->addItem(vs_videomodes_fw); //video modes submenue
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
videosetup->addItem(vs_automodes_fw); //video auto modes submenue
|
||||
videosetup->addItem(vs_automodes_fw); //video auto modes submenue
|
||||
#endif
|
||||
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
@@ -561,6 +564,33 @@ int CVideoSettings::showVideoSetup()
|
||||
zm->setHint("", LOCALE_MENU_HINT_VIDEO_ZAPPINGMODE);
|
||||
videosetup->addItem(zm);
|
||||
}
|
||||
|
||||
#if HAVE_ARM_HARDWARE
|
||||
videosetup->addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_VIDEOMENU_PSI));
|
||||
CMenuOptionNumberChooser *mc;
|
||||
CPSISetup *psiSetup = CPSISetup::getInstance();
|
||||
|
||||
mc = new CMenuOptionNumberChooser(LOCALE_VIDEOMENU_PSI_STEP, (int *)&g_settings.psi_step, true, 1, 100, NULL);
|
||||
mc->setHint("", LOCALE_MENU_HINT_VIDEO_PSI_STEP);
|
||||
videosetup->addItem(mc);
|
||||
|
||||
mc = new CMenuOptionNumberChooser(LOCALE_VIDEOMENU_PSI_CONTRAST, (int *)&g_settings.psi_contrast, true, 0, 255, psiSetup);
|
||||
mc->setHint("", LOCALE_MENU_HINT_VIDEO_CONTRAST);
|
||||
videosetup->addItem(mc);
|
||||
|
||||
mc = new CMenuOptionNumberChooser(LOCALE_VIDEOMENU_PSI_SATURATION, (int *)&g_settings.psi_saturation, true, 0, 255, psiSetup);
|
||||
mc->setHint("", LOCALE_MENU_HINT_VIDEO_SATURATION);
|
||||
videosetup->addItem(mc);
|
||||
|
||||
mc = new CMenuOptionNumberChooser(LOCALE_VIDEOMENU_PSI_BRIGHTNESS, (int *)&g_settings.psi_brightness, true, 0, 255, psiSetup);
|
||||
mc->setHint("", LOCALE_MENU_HINT_VIDEO_BRIGHTNESS);
|
||||
videosetup->addItem(mc);
|
||||
|
||||
mc = new CMenuOptionNumberChooser(LOCALE_VIDEOMENU_PSI_TINT, (int *)&g_settings.psi_tint, true, 0, 255, psiSetup);
|
||||
mc->setHint("", LOCALE_MENU_HINT_VIDEO_TINT);
|
||||
videosetup->addItem(mc);
|
||||
#endif
|
||||
|
||||
int res = videosetup->exec(NULL, "");
|
||||
selected = videosetup->getSelected();
|
||||
delete videosetup;
|
||||
|
Reference in New Issue
Block a user