fix cursor capture area bug.

This commit is contained in:
hecomi
2016-11-29 20:02:02 +09:00
parent cfee22832a
commit a24472bd92
3 changed files with 1 additions and 2 deletions
@@ -167,7 +167,7 @@ void Cursor::Draw(Monitor* monitor)
capturedImageTop = 0;
}
if (capturedImageBottom >= monitorHeight)
if (capturedImageBottom >= desktopImageHeight)
{
capturedImageHeight -= capturedImageBottom - desktopImageHeight;
capturedImageBottom = desktopImageHeight - 1;
@@ -37,7 +37,6 @@ extern "C"
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API Finalize()
{
if (!g_manager) return;
g_manager.reset();
std::queue<Message> empty;