mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
more QuadPiP stuff (still NOT ready!)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8f11a004b7
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2021-10-15 (Fri, 15 Oct 2021)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -116,6 +116,9 @@
|
||||
#ifdef ENABLE_PIP
|
||||
#include "gui/pipsetup.h"
|
||||
#endif
|
||||
#if ENABLE_PIP && ENABLE_QUADPIP
|
||||
#include <gui/quadpip_setup.h>
|
||||
#endif
|
||||
#include "gui/themes.h"
|
||||
#include "gui/timerlist.h"
|
||||
#include "gui/components/cc_item_progressbar.h"
|
||||
@@ -1167,6 +1170,15 @@ int CNeutrinoApp::loadSetup(const char *fname)
|
||||
g_settings.pip_radio_height = configfile.getInt32("pip_radio_height", g_settings.pip_height);
|
||||
#endif
|
||||
|
||||
#if ENABLE_PIP && ENABLE_QUADPIP
|
||||
for (unsigned int i = 0; i < 4; i++) {
|
||||
sprintf(cfg_key, "quadpip_channel_window_%d", i);
|
||||
g_settings.quadpip_channel_window[i] = configfile.getString(cfg_key, "-");
|
||||
sprintf(cfg_key, "quadpip_channel_id_window_%d", i);
|
||||
g_settings.quadpip_channel_id_window[i] = configfile.getInt32(cfg_key, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
// pictureviewer
|
||||
g_settings.picviewer_scaling = configfile.getInt32("picviewer_scaling", 1 /*(int)CPictureViewer::SIMPLE*/);
|
||||
g_settings.picviewer_slide_time = configfile.getInt32("picviewer_slide_time", 10);
|
||||
@@ -2172,6 +2184,15 @@ void CNeutrinoApp::saveSetup(const char *fname)
|
||||
configfile.setInt32("pip_radio_height", g_settings.pip_radio_height);
|
||||
#endif
|
||||
|
||||
#if ENABLE_PIP && ENABLE_QUADPIP
|
||||
for (unsigned int i = 0; i < 4; i++) {
|
||||
std::string qp = "quadpip_channel_window_" + to_string(i);
|
||||
configfile.setString(qp, g_settings.quadpip_channel_window[i]);
|
||||
qp = "quadpip_channel_id_window_" + to_string(i);
|
||||
configfile.setInt32(qp, g_settings.quadpip_channel_id_window[i]);
|
||||
}
|
||||
#endif
|
||||
|
||||
// pictureviewer
|
||||
configfile.setInt32("picviewer_scaling", g_settings.picviewer_scaling);
|
||||
configfile.setInt32("picviewer_slide_time", g_settings.picviewer_slide_time);
|
||||
|
Reference in New Issue
Block a user