From 8d1710bb07f01944e261df13e4dd9a90d5bce2e1 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 14 Sep 2016 00:23:23 +0200 Subject: [PATCH] - pzapit: fix change video mode; tell neutrino about the new value --- src/neutrino.h | 2 ++ src/zapit/src/zapit.cpp | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/neutrino.h b/src/neutrino.h index 151aadd2b..1b15140ea 100644 --- a/src/neutrino.h +++ b/src/neutrino.h @@ -242,6 +242,8 @@ public: sigc::signal OnBeforeRestart; sigc::signal OnAfterSetupFonts; void channelRezap(); + + void g_settings_video_Mode(int value) { g_settings.video_Mode = value; } }; #endif diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index 6cf7d90d5..432e19e00 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -75,6 +75,8 @@ #include #include +#include + /* globals */ int sig_delay = 2; // seconds between signal check @@ -1653,14 +1655,13 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd) } break; } -#if 0 case CZapitMessages::CMD_SET_VIDEO_SYSTEM: { CZapitMessages::commandInt msg; CBasicServer::receive_data(connfd, &msg, sizeof(msg)); videoDecoder->SetVideoSystem(msg.val); + CNeutrinoApp::getInstance()->g_settings_video_Mode(msg.val); break; } -#endif #if 0 case CZapitMessages::CMD_SET_NTSC: { videoDecoder->SetVideoSystem(8);