[host] correct cursor visibility information

This commit is contained in:
Geoffrey McRae
2018-10-09 18:28:08 +11:00
parent 0e8678b182
commit f36fd5ac1a
2 changed files with 40 additions and 45 deletions

View File

@@ -360,9 +360,6 @@ DWORD Service::CursorThread()
flags |= KVMFR_CURSOR_FLAG_POS;
cursor->x = ci.x;
cursor->y = ci.y;
if (ci.visible)
flags |= KVMFR_CURSOR_FLAG_VISIBLE;
}
if (ci.shape)
@@ -384,8 +381,11 @@ DWORD Service::CursorThread()
memcpy(m_cursorData, ci.shape->buffer, ci.shape->bufferSize);
}
}
flags |= KVMFR_CURSOR_FLAG_UPDATE;
if (ci.visible)
flags |= KVMFR_CURSOR_FLAG_VISIBLE;
flags |= KVMFR_CURSOR_FLAG_UPDATE;
cursor->flags = flags;
m_capture->FreeCursor(ci);
}