fix out-of-area bug.
This commit is contained in:
Binary file not shown.
@@ -188,6 +188,11 @@ void Cursor::Draw(Monitor* monitor)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (capturedImageWidth == 0 || capturedImageHeight == 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
D3D11_BOX capturedImageArea
|
D3D11_BOX capturedImageArea
|
||||||
{
|
{
|
||||||
static_cast<UINT>(capturedImageLeft),
|
static_cast<UINT>(capturedImageLeft),
|
||||||
|
|||||||
Reference in New Issue
Block a user