[c-host] dxgi: fix invalid cursor type define

This commit is contained in:
Geoffrey McRae 2019-05-28 15:17:11 +10:00
parent 026bdb00f2
commit 780bb248f7
3 changed files with 7 additions and 4 deletions

View File

@ -1 +1 @@
B1-rc3-8-g373d4ac932+1 B1-rc4-0-g026bdb00f2+1

View File

@ -35,9 +35,9 @@ HRESULT __stdcall CreateDXGIFactory1(REFIID riid, void **factory);
#endif #endif
enum DXGI_OUTDUPL_POINTER_SHAPE_TYPE { enum DXGI_OUTDUPL_POINTER_SHAPE_TYPE {
DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MONOCHROME = 1, DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MONOCHROME = 0x1,
DXGI_OUTDUPL_POINTER_SHAPE_TYPE_COLOR, DXGI_OUTDUPL_POINTER_SHAPE_TYPE_COLOR = 0x2,
DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MASKED_COLOR DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MASKED_COLOR = 0x4
}; };
typedef struct DXGI_OUTDUPL_DESC { typedef struct DXGI_OUTDUPL_DESC {

View File

@ -75,6 +75,9 @@ static int pointerThread(void * opaque)
while(app.running) while(app.running)
{ {
bool resend = false; bool resend = false;
pointer.shapeUpdate = false;
switch(app.iface->getPointer(&pointer)) switch(app.iface->getPointer(&pointer))
{ {
case CAPTURE_RESULT_OK: case CAPTURE_RESULT_OK: