From 5b82b12b64d56d1d736d0100208eab84be3f015a Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Mon, 16 Sep 2013 14:24:08 +0200 Subject: FIX: forgot to save the resolution settings in the flash --- index.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 4c975da..144bdfc 100644 --- a/index.html +++ b/index.html @@ -177,6 +177,7 @@ function GetSettings() { } Set_Res = toi.informationService.getObject("vip.resolution"); + VideoOutput(); //if needed types can be set here. Default of the box is normal. //is = toi.informationService; @@ -457,14 +458,11 @@ for(x=0; x VideoOutputModes.length) { Set_Res = 0;} - videoConfig = toi.videoOutputService.getVideoConfiguration(); var session = null; try { - var currentOutput = 0; + var currentOutput = 0; //0 = normaly HDMI displayInfo=videoConfig.getDisplayInfo(videoConfig.getVideoOutputs()[currentOutput]); var desiredMode = VideoOutputModes[Set_Res]; @@ -474,6 +472,9 @@ videoConfig = toi.videoOutputService.getVideoConfiguration(); session.apply(); session.releaseInstance(); + // save the info + toi.informationService.setObject("vip.resolution",Set_Res,toi.informationService.STORAGE_PERMANENT) + } catch (e) { if (session != null) { @@ -483,6 +484,7 @@ videoConfig = toi.videoOutputService.getVideoConfiguration(); } setOSDscale(); +SetupFonts(); } @@ -2052,6 +2054,9 @@ function onKeyMenu(keyCode) { break; case "Green": if (menu == 1) { + Set_Res = Set_Res + 1; + if (Set_Res > (VideoOutputModes.length-1)) { Set_Res = 0;} + VideoOutput(); InitMenu(menu); } else if (menu == 5) { -- cgit v1.2.3