fix boudary condition of cursor texture.
This commit is contained in:
Binary file not shown.
@@ -185,8 +185,8 @@ void Cursor::UpdateTexture()
|
|||||||
|
|
||||||
if (box.left < 0 ||
|
if (box.left < 0 ||
|
||||||
box.top < 0 ||
|
box.top < 0 ||
|
||||||
box.right >= static_cast<UINT>(desktopImageWidth) ||
|
box.right > static_cast<UINT>(desktopImageWidth) ||
|
||||||
box.bottom >= static_cast<UINT>(desktopImageHeight))
|
box.bottom > static_cast<UINT>(desktopImageHeight))
|
||||||
{
|
{
|
||||||
Debug::Error("Cursor::UpdateTexture() => box is out of area.");
|
Debug::Error("Cursor::UpdateTexture() => box is out of area.");
|
||||||
Debug::Error(
|
Debug::Error(
|
||||||
|
|||||||
Reference in New Issue
Block a user