fix cursor capture area bug.
This commit is contained in:
Binary file not shown.
@@ -167,7 +167,7 @@ void Cursor::Draw(Monitor* monitor)
|
|||||||
capturedImageTop = 0;
|
capturedImageTop = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (capturedImageBottom >= monitorHeight)
|
if (capturedImageBottom >= desktopImageHeight)
|
||||||
{
|
{
|
||||||
capturedImageHeight -= capturedImageBottom - desktopImageHeight;
|
capturedImageHeight -= capturedImageBottom - desktopImageHeight;
|
||||||
capturedImageBottom = desktopImageHeight - 1;
|
capturedImageBottom = desktopImageHeight - 1;
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ extern "C"
|
|||||||
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API Finalize()
|
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API Finalize()
|
||||||
{
|
{
|
||||||
if (!g_manager) return;
|
if (!g_manager) return;
|
||||||
|
|
||||||
g_manager.reset();
|
g_manager.reset();
|
||||||
|
|
||||||
std::queue<Message> empty;
|
std::queue<Message> empty;
|
||||||
|
|||||||
Reference in New Issue
Block a user