fix boudary condition of cursor texture.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user