mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[c-host] nvfbc: fixed invalid nvfbc init
This commit is contained in:
parent
0eafa7de5d
commit
b5d91ccc21
1 changed files with 8 additions and 10 deletions
|
@ -104,7 +104,9 @@ static void nvfbc_initOptions()
|
||||||
option_register(options);
|
option_register(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool nvfbc_create()
|
static bool nvfbc_create(
|
||||||
|
CaptureGetPointerBuffer getPointerBufferFn,
|
||||||
|
CapturePostPointerBuffer postPointerBufferFn)
|
||||||
{
|
{
|
||||||
if (!NvFBCInit())
|
if (!NvFBCInit())
|
||||||
return false;
|
return false;
|
||||||
|
@ -147,23 +149,19 @@ static bool nvfbc_create()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->seperateCursor = option_get_bool("nvfbc", "decoupleCursor");
|
this->seperateCursor = option_get_bool("nvfbc", "decoupleCursor");
|
||||||
|
this->getPointerBufferFn = getPointerBufferFn;
|
||||||
|
this->postPointerBufferFn = postPointerBufferFn;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool nvfbc_init(
|
static bool nvfbc_init()
|
||||||
CaptureGetPointerBuffer getPointerBufferFn,
|
|
||||||
CapturePostPointerBuffer postPointerBufferFn)
|
|
||||||
{
|
{
|
||||||
this->stop = false;
|
this->stop = false;
|
||||||
this->getPointerBufferFn = getPointerBufferFn;
|
|
||||||
this->postPointerBufferFn = postPointerBufferFn;
|
|
||||||
|
|
||||||
getDesktopSize(&this->width, &this->height);
|
getDesktopSize(&this->width, &this->height);
|
||||||
lgResetEvent(this->frameEvent);
|
lgResetEvent(this->frameEvent);
|
||||||
|
|
||||||
|
|
||||||
HANDLE event;
|
HANDLE event;
|
||||||
if (!NvFBCToSysSetup(
|
if (!NvFBCToSysSetup(
|
||||||
this->nvfbc,
|
this->nvfbc,
|
||||||
|
|
Loading…
Reference in a new issue