From 86bd7443cced267db606be5c634e511fe8cd24d9 Mon Sep 17 00:00:00 2001 From: Tau Date: Fri, 30 Aug 2019 18:46:04 -0400 Subject: [PATCH] platform/amvideo.c: Stub monitor_setting_X reg val --- platform/amvideo.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/platform/amvideo.c b/platform/amvideo.c index 6f4b2e45..411a6de6 100644 --- a/platform/amvideo.c +++ b/platform/amvideo.c @@ -22,6 +22,7 @@ static int amDllVideoGetVBiosVersion(void *ctx, char *dest, size_t nchars); static HRESULT amvideo_reg_read_name(void *bytes, uint32_t *nbytes); static HRESULT amvideo_reg_read_port_X(void *bytes, uint32_t *nbytes); static HRESULT amvideo_reg_read_resolution_1(void *bytes, uint32_t *nbytes); +static HRESULT amvideo_reg_read_setting(void *bytes, uint32_t *nbytes); static HRESULT amvideo_reg_read_use_segatiming(void *bytes, uint32_t *nbytes); static const wchar_t amvideo_dll_name[] = L"$amvideo"; @@ -36,6 +37,14 @@ static const struct reg_hook_val amvideo_reg_vals[] = { static const struct reg_hook_val amvideo_reg_mode_vals[] = { { + .name = L"monitor_setting_1", + .read = amvideo_reg_read_setting, + .type = REG_SZ, + }, { + .name = L"monitor_setting_2", + .read = amvideo_reg_read_setting, + .type = REG_SZ, + }, { .name = L"port_1", .read = amvideo_reg_read_port_X, .type = REG_DWORD @@ -185,6 +194,11 @@ static HRESULT amvideo_reg_read_resolution_1(void *bytes, uint32_t *nbytes) return reg_hook_read_wstr(bytes, nbytes, L"1920x1080"); } +static HRESULT amvideo_reg_read_setting(void *bytes, uint32_t *nbytes) +{ + return reg_hook_read_wstr(bytes, nbytes, L"0"); +} + static HRESULT amvideo_reg_read_use_segatiming(void *bytes, uint32_t *nbytes) { return reg_hook_read_u32(bytes, nbytes, 0);