From 780bb248f7b8dd65b102ecd5010877f99bb8095e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 28 May 2019 15:17:11 +1000 Subject: [PATCH] [c-host] dxgi: fix invalid cursor type define --- VERSION | 2 +- c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h | 6 +++--- c-host/src/app.c | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 6e2c22d4..c1c686a9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-rc3-8-g373d4ac932+1 \ No newline at end of file +B1-rc4-0-g026bdb00f2+1 \ No newline at end of file diff --git a/c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h b/c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h index a0d75d86..3ae9ab63 100644 --- a/c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h +++ b/c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h @@ -35,9 +35,9 @@ HRESULT __stdcall CreateDXGIFactory1(REFIID riid, void **factory); #endif enum DXGI_OUTDUPL_POINTER_SHAPE_TYPE { - DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MONOCHROME = 1, - DXGI_OUTDUPL_POINTER_SHAPE_TYPE_COLOR, - DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MASKED_COLOR + DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MONOCHROME = 0x1, + DXGI_OUTDUPL_POINTER_SHAPE_TYPE_COLOR = 0x2, + DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MASKED_COLOR = 0x4 }; typedef struct DXGI_OUTDUPL_DESC { diff --git a/c-host/src/app.c b/c-host/src/app.c index 4c925a0f..89c3e7a7 100644 --- a/c-host/src/app.c +++ b/c-host/src/app.c @@ -75,6 +75,9 @@ static int pointerThread(void * opaque) while(app.running) { bool resend = false; + + pointer.shapeUpdate = false; + switch(app.iface->getPointer(&pointer)) { case CAPTURE_RESULT_OK: