Clip bottom coordinates.

This commit is contained in:
Marko Kreen 2002-11-11 20:26:33 +00:00 committed by Alexandre Julliard
parent e39e8a172b
commit 971f3f3518

View file

@ -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);