fix boudary condition of cursor texture.

This commit is contained in:
hecomi
2016-11-20 02:54:38 +09:00
parent 533a4c9f28
commit 110d5d7bda
2 changed files with 2 additions and 2 deletions
@@ -185,8 +185,8 @@ void Cursor::UpdateTexture()
if (box.left < 0 ||
box.top < 0 ||
box.right >= static_cast<UINT>(desktopImageWidth) ||
box.bottom >= static_cast<UINT>(desktopImageHeight))
box.right > static_cast<UINT>(desktopImageWidth) ||
box.bottom > static_cast<UINT>(desktopImageHeight))
{
Debug::Error("Cursor::UpdateTexture() => box is out of area.");
Debug::Error(