mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
#136 add some more checks to BltFast
This commit is contained in:
parent
e8cc0f5b1c
commit
8f34d10cdc
@ -647,6 +647,12 @@ HRESULT dds_BltFast(
|
|||||||
int dst_x = dwX;
|
int dst_x = dwX;
|
||||||
int dst_y = dwY;
|
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 };
|
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)
|
if (dst_rect.left < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user