fix out-of-area bug.

This commit is contained in:
hecomi
2016-11-29 20:10:05 +09:00
parent a24472bd92
commit 32adf6c2d0
2 changed files with 5 additions and 0 deletions
@@ -188,6 +188,11 @@ void Cursor::Draw(Monitor* monitor)
return;
}
if (capturedImageWidth == 0 || capturedImageHeight == 0)
{
return;
}
D3D11_BOX capturedImageArea
{
static_cast<UINT>(capturedImageLeft),