Commit f825c04b authored by John Ballance's avatar John Ballance
Browse files

Remove ReadEDID command. Extend Service_DisplayChanged response

Detail:
ReadEDID command removed. New subreason code added to reason code 0
of Service_DisplayChanged to oblige ScrModes to load the EDID based
modes it discovered. Required because current behaviour would ignore
any EDID based modes once a LoadModeFile command had been issued.
Admin:
Tested on iMx6

Version 0.64. Tagged as 'ScrModes-0_64'
parent d2e86f90
No preview for this file type
/* (0.62)
/* (0.64)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.62
#define Module_MajorVersion_CMHG 0.64
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 12 Mar 2017
#define Module_Date_CMHG 01 May 2017
#define Module_MajorVersion "0.62"
#define Module_Version 62
#define Module_MajorVersion "0.64"
#define Module_Version 64
#define Module_MinorVersion ""
#define Module_Date "12 Mar 2017"
#define Module_Date "01 May 2017"
#define Module_ApplicationDate "12-Mar-17"
#define Module_ApplicationDate "01-May-17"
#define Module_ComponentName "ScrModes"
#define Module_ComponentPath "castle/RiscOS/Sources/Video/UserI/ScrModes"
#define Module_FullVersion "0.62"
#define Module_HelpVersion "0.62 (12 Mar 2017)"
#define Module_LibraryVersionInfo "0:62"
#define Module_FullVersion "0.64"
#define Module_HelpVersion "0.64 (01 May 2017)"
#define Module_LibraryVersionInfo "0:64"
......@@ -1192,8 +1192,10 @@ static void service_displaychanged(_kernel_swi_regs *regs)
* call chain, so Display Manager et al can't enumerate the modes
* with OS_ScreenMode 2. This is only a problem for developers, who
* can manually re-read it (standalone builds are only partly supported today).
*/
readedid(regs->r[2], using_edid);
*/
/* added new reason code of 1 to indicate reset to edid based definitions
*/
readedid(regs->r[2], regs->r[3]==1?true:false);
break;
}
}
......@@ -1474,10 +1476,6 @@ _kernel_oserror *ScreenModes_cmdhandler(const char *arg_string, int argc, int cm
case CMD_SaveModeFile:
result = savemodefile(arg_string);
break;
case CMD_ReadEDID:
if(argc > 1) sscanf(arg_string,"%1d",&display);
result = readedid(display, true);
break;
default:
return NULL;
}
......
......@@ -45,10 +45,7 @@ command-keyword-table: ScreenModes_cmdhandler
help-text: "HSMDLMF"),
SaveModeFile(min-args:1, max-args: 1, international:,
invalid-syntax: "SSMDSMF",
help-text: "HSMDSMF"),
ReadEDID(min-args:0,max-args:1, international:,
invalid-syntax: "SSMDRED",
help-text: "HSMDRED")
help-text: "HSMDSMF")
swi-chunk-base-number: 0x487C0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment