From 110d5d7bda3378f21f146087ab0d2b51dfd1a440 Mon Sep 17 00:00:00 2001 From: hecomi Date: Sun, 20 Nov 2016 02:54:38 +0900 Subject: [PATCH] fix boudary condition of cursor texture. --- .../Plugins/x86_64/uDesktopDuplication.dll | Bin 76288 -> 76288 bytes .../uDesktopDuplication/Cursor.cpp | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/uDesktopDuplication/Plugins/x86_64/uDesktopDuplication.dll b/Assets/uDesktopDuplication/Plugins/x86_64/uDesktopDuplication.dll index 8ff08b9f1016bbe845b02509da7f04f60c69d3f2..7ec2e46b6000e1ad32415a47867ccd1963933e7a 100644 GIT binary patch delta 119 zcmZp;!qRYsWrF}ClflHzLX1KkTvg8NS{Y0fAmKM%~RTuY1ceiHU9g_La*704BB^ ACIA2c diff --git a/Plugins/uDesktopDuplication/uDesktopDuplication/Cursor.cpp b/Plugins/uDesktopDuplication/uDesktopDuplication/Cursor.cpp index 21ce303..aceef41 100644 --- a/Plugins/uDesktopDuplication/uDesktopDuplication/Cursor.cpp +++ b/Plugins/uDesktopDuplication/uDesktopDuplication/Cursor.cpp @@ -185,8 +185,8 @@ void Cursor::UpdateTexture() if (box.left < 0 || box.top < 0 || - box.right >= static_cast(desktopImageWidth) || - box.bottom >= static_cast(desktopImageHeight)) + box.right > static_cast(desktopImageWidth) || + box.bottom > static_cast(desktopImageHeight)) { Debug::Error("Cursor::UpdateTexture() => box is out of area."); Debug::Error(