mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
osd resolution: Use COsdHelpers::changeOsdResolution() to adjust...
...OSD resolution after switching video format
Origin commit data
------------------
Commit: ff11dd44ab
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-28 (Tue, 28 Feb 2017)
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include <gui/widget/hintbox.h>
|
||||
#include <gui/widget/msgbox.h>
|
||||
#include <gui/osd_setup.h>
|
||||
#include <gui/osd_helpers.h>
|
||||
|
||||
#include <driver/display.h>
|
||||
#include <driver/screen_max.h>
|
||||
@@ -412,7 +413,9 @@ void CVideoSettings::setVideoSettings()
|
||||
void CVideoSettings::setupVideoSystem(bool do_ask)
|
||||
{
|
||||
printf("[neutrino VideoSettings] %s setup videosystem...\n", __FUNCTION__);
|
||||
COsdHelpers::getInstance()->resetOsdResolution(g_settings.video_Mode);
|
||||
videoDecoder->SetVideoSystem(g_settings.video_Mode); //FIXME
|
||||
COsdHelpers::getInstance()->changeOsdResolution(0, true, true);
|
||||
|
||||
if (do_ask)
|
||||
{
|
||||
@@ -422,7 +425,9 @@ void CVideoSettings::setupVideoSystem(bool do_ask)
|
||||
if (ShowMsg(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_VIDEO_MODE_OK), CMsgBox::mbrNo, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_INFO) != CMsgBox::mbrYes)
|
||||
{
|
||||
g_settings.video_Mode = prev_video_mode;
|
||||
COsdHelpers::getInstance()->resetOsdResolution(g_settings.video_Mode);
|
||||
videoDecoder->SetVideoSystem(g_settings.video_Mode);
|
||||
COsdHelpers::getInstance()->changeOsdResolution(0, true, true);
|
||||
}
|
||||
else
|
||||
prev_video_mode = g_settings.video_Mode;
|
||||
@@ -606,7 +611,9 @@ void CVideoSettings::nextMode(void)
|
||||
else if(res == messages_return::cancel_info) {
|
||||
g_settings.video_Mode = VIDEOMENU_VIDEOMODE_OPTIONS[curmode].key;
|
||||
//CVFD::getInstance()->ShowText(text);
|
||||
COsdHelpers::getInstance()->resetOsdResolution(g_settings.video_Mode);
|
||||
videoDecoder->SetVideoSystem(g_settings.video_Mode);
|
||||
COsdHelpers::getInstance()->changeOsdResolution(0, true, true);
|
||||
//return;
|
||||
disp_cur = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user