mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[host] fix compiler warnings
This commit is contained in:
parent
18634fa805
commit
037ea5b1fc
@ -723,7 +723,6 @@ GrabStatus Capture::DXGI::DiscardFrame()
|
|||||||
|
|
||||||
GrabStatus Capture::DXGI::GrabFrameRaw(FrameInfo & frame)
|
GrabStatus Capture::DXGI::GrabFrameRaw(FrameInfo & frame)
|
||||||
{
|
{
|
||||||
GrabStatus result;
|
|
||||||
D3D11_MAPPED_SUBRESOURCE mapping;
|
D3D11_MAPPED_SUBRESOURCE mapping;
|
||||||
|
|
||||||
HRESULT status;
|
HRESULT status;
|
||||||
@ -746,8 +745,6 @@ GrabStatus Capture::DXGI::GrabFrameRaw(FrameInfo & frame)
|
|||||||
|
|
||||||
GrabStatus Capture::DXGI::GrabFrameYUV420(struct FrameInfo & frame)
|
GrabStatus Capture::DXGI::GrabFrameYUV420(struct FrameInfo & frame)
|
||||||
{
|
{
|
||||||
GrabStatus result;
|
|
||||||
|
|
||||||
uint8_t * data = (uint8_t *)frame.buffer;
|
uint8_t * data = (uint8_t *)frame.buffer;
|
||||||
size_t remain = frame.bufferSize;
|
size_t remain = frame.bufferSize;
|
||||||
for(int i = 0; i < 3; ++i)
|
for(int i = 0; i < 3; ++i)
|
||||||
|
@ -67,8 +67,8 @@ LRESULT Service::LowLevelMouseProc(int nCode, WPARAM wParam, LPARAM lParam)
|
|||||||
volatile KVMFRCursor * cursor = &(m_shmHeader->cursor);
|
volatile KVMFRCursor * cursor = &(m_shmHeader->cursor);
|
||||||
volatile char * flags = (volatile char *)&(cursor->flags);
|
volatile char * flags = (volatile char *)&(cursor->flags);
|
||||||
|
|
||||||
cursor->x = msg->pt.x;
|
cursor->x = (int16_t)msg->pt.x;
|
||||||
cursor->y = msg->pt.y;
|
cursor->y = (int16_t)msg->pt.y;
|
||||||
INTERLOCKED_OR8(flags, KVMFR_CURSOR_FLAG_POS);
|
INTERLOCKED_OR8(flags, KVMFR_CURSOR_FLAG_POS);
|
||||||
}
|
}
|
||||||
return CallNextHookEx(m_mouseHook, nCode, wParam, lParam);
|
return CallNextHookEx(m_mouseHook, nCode, wParam, lParam);
|
||||||
|
Loading…
Reference in New Issue
Block a user