mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 21:39:43 +00:00
Clip bottom coordinates.
This commit is contained in:
parent
e39e8a172b
commit
971f3f3518
|
@ -395,6 +395,11 @@ DIB_DirectDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
|
|||
}
|
||||
}
|
||||
|
||||
if (xsrc.bottom > sdesc.dwHeight)
|
||||
xsrc.bottom = sdesc.dwHeight;
|
||||
if (xdst.bottom > ddesc.dwHeight)
|
||||
xdst.bottom = ddesc.dwHeight;
|
||||
|
||||
if (src) assert((xsrc.bottom-xsrc.top) <= sdesc.dwHeight);
|
||||
assert((xdst.bottom-xdst.top) <= ddesc.dwHeight);
|
||||
|
||||
|
|
Loading…
Reference in a new issue