mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-13 02:48:23 +00:00
[idd] driver: relocate the HW cursor thread into CSwapChainProcessor
It is invalid to call `IddCxMonitorSetupHardwareCursor` before `IddCxSwapChainSetDevice`. This fixes this by moving the thread into CSwapChainProcessor and starting it after `IddCxSwapChainSetDevice` has succeeded.
This commit is contained in:
@@ -41,16 +41,6 @@ private:
|
||||
CIndirectDeviceContext * m_devContext;
|
||||
std::unique_ptr<CSwapChainProcessor> m_swapChain;
|
||||
|
||||
Wrappers::Event m_terminateEvent;
|
||||
Wrappers::Event m_cursorDataEvent;
|
||||
Wrappers::HandleT<Wrappers::HandleTraits::HANDLENullTraits> m_thread;
|
||||
BYTE * m_shapeBuffer;
|
||||
|
||||
DWORD m_lastShapeId = 0;
|
||||
|
||||
static DWORD CALLBACK _CursorThread(LPVOID arg);
|
||||
void CursorThread();
|
||||
|
||||
public:
|
||||
CIndirectMonitorContext(_In_ IDDCX_MONITOR monitor, CIndirectDeviceContext * device);
|
||||
|
||||
|
Reference in New Issue
Block a user