From 10ee6cd0315897cf7c3e342b80d2b54a5ce9b2f2 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 13 Aug 2021 19:13:33 -0400 Subject: [PATCH] [host] nvfbc: read nvfbc:diffRes option with the correct type --- host/platform/Windows/capture/NVFBC/src/nvfbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/capture/NVFBC/src/nvfbc.c b/host/platform/Windows/capture/NVFBC/src/nvfbc.c index edae65aa..ae3dd224 100644 --- a/host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -198,7 +198,7 @@ static bool nvfbc_init(void) return false; } - int diffRes = option_get_bool("nvfbc", "diffRes"); + int diffRes = option_get_int("nvfbc", "diffRes"); enum DiffMapBlockSize blockSize; NvFBCGetDiffMapBlockSize(diffRes, &blockSize, &this->diffShift, privData, privDataLen); free(privData);