#136 add some more checks to BltFast
This commit is contained in:
parent
e8cc0f5b1c
commit
8f34d10cdc
1 changed files with 6 additions and 0 deletions
|
@ -647,6 +647,12 @@ HRESULT dds_BltFast(
|
|||
int dst_x = dwX;
|
||||
int dst_y = dwY;
|
||||
|
||||
if (dst_x < 0)
|
||||
dst_x = 0;
|
||||
|
||||
if (dst_y < 0)
|
||||
dst_y = 0;
|
||||
|
||||
RECT dst_rect = { dst_x, dst_y, (src_rect.right - src_rect.left) + dst_x, (src_rect.bottom - src_rect.top) + dst_y };
|
||||
|
||||
if (dst_rect.left < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue