Fix osd mode switch in videosystem auto mode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1bb9fc6687
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-03-06 (Mon, 06 Mar 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2017-03-06 10:51:43 +01:00
parent 875905608d
commit 78a2c71634

View File

@@ -58,8 +58,15 @@ void COsdHelpers::changeOsdResolution(uint32_t mode, bool automode/*=false*/, bo
} }
int videoSystem = getVideoSystem(); int videoSystem = getVideoSystem();
if (!isVideoSystem1080(videoSystem))
if ((g_settings.video_Mode == VIDEO_STD_AUTO) &&
(g_settings.enabled_auto_modes[videoSystem] == 1) &&
(!isVideoSystem1080(videoSystem)))
modeNew = OSDMODE_720; modeNew = OSDMODE_720;
// if (!isVideoSystem1080(videoSystem))
// modeNew = OSDMODE_720;
idx = frameBuffer->getIndexOsdResolution(modeNew); idx = frameBuffer->getIndexOsdResolution(modeNew);
resetOsd = (modeNew != getOsdResolution()) ? true : false; resetOsd = (modeNew != getOsdResolution()) ? true : false;
#if 1 #if 1