From cc6dd58778321a15b8d804f30754ffa65a7dac97 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 17 May 2019 09:27:04 +1000 Subject: [PATCH] [c-host] windows: fix dxgi option struct syntax --- VERSION | 2 +- .../platform/Windows/capture/DXGI/src/dxgi.c | 28 +++++++------------ 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/VERSION b/VERSION index 0438add6..9285b0db 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-188-ga7daeb2a12+1 \ No newline at end of file +a12-189-g0ba931cbed+1 \ No newline at end of file diff --git a/c-host/platform/Windows/capture/DXGI/src/dxgi.c b/c-host/platform/Windows/capture/DXGI/src/dxgi.c index 5be5e605..264f4478 100644 --- a/c-host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/c-host/platform/Windows/capture/DXGI/src/dxgi.c @@ -107,26 +107,18 @@ static void dxgi_initOptions() struct Option options[] = { { - .module = "dxgi", - .name = "adapter", - .description = "The name of the adapter to capture", - .value = { - .type = OPTION_TYPE_STRING, - .v.x_string = NULL - }, - .validator = NULL, - .printHelp = NULL + .module = "dxgi", + .name = "adapter", + .description = "The name of the adapter to capture", + .type = OPTION_TYPE_STRING, + .value.x_string = NULL }, { - .module = "dxgi", - .name = "output", - .description = "The name of the adapter's output to capture", - .value = { - .type = OPTION_TYPE_STRING, - .v.x_string = NULL - }, - .validator = NULL, - .printHelp = NULL + .module = "dxgi", + .name = "output", + .description = "The name of the adapter's output to capture", + .type = OPTION_TYPE_STRING, + .value.x_string = NULL }, {0} };